raft 0.1.0
|
#include <client.hpp>
Public Member Functions | |
virtual tl::expected< std::unique_ptr< Client >, Error > | createClient (std::string const &address)=0 |
Abstract factory interface for creating Raft clients. Implementations of this interface provide a way to create Client instances for connecting to Raft servers at specific addresses.
|
pure virtual |
Creates a new Raft client that connects to the specified address.
address | The address to connect to in "host:port" format. |