6#include "raft/client.hpp"
7#include "raft/server.hpp"
22 virtual tl::expected<std::string, Error>
start(std::string
const& address) = 0;
26 virtual tl::expected<void, Error>
stop() = 0;
31 std::shared_ptr<ServiceHandler> handler;
38 tl::expected<std::shared_ptr<Network>, Error> createNetwork(
NetworkCreateConfig const& config);
The network interface for the Raft server.
Definition network.hpp:13
virtual tl::expected< std::string, Error > start(std::string const &address)=0
virtual tl::expected< void, Error > stop()=0
Definition network.hpp:30