Files
Rediska/rediska/frontend/server.hpp
Nikita Astafyev 35a6349071
Some checks failed
Code Analysis / analysis (push) Failing after 2m59s
chore: initial commit
2025-12-30 22:34:58 +07:00

12 lines
436 B
C++

#pragma once
#include <functional>
#include <string>
#include "rediska/common/QueueMessage.hpp"
// Starts the gRPC frontend server on the given address and blocks.
// Each incoming request is transformed into a QueueMessage with its responder
// moved inside; the provided callback decides when/how to finish it.
void RunFrontendServer(const std::string& address,
std::function<void(QueueMessage)> on_request);