raft 0.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
raft::ClientFactory Class Referenceabstract

#include <client.hpp>

Public Member Functions

virtual tl::expected< std::unique_ptr< Client >, Error > createClient (std::string const &address)=0
 

Detailed Description

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.

Member Function Documentation

◆ createClient()

virtual tl::expected< std::unique_ptr< Client >, Error > raft::ClientFactory::createClient ( std::string const &  address)
pure virtual

Creates a new Raft client that connects to the specified address.

Parameters
addressThe address to connect to in "host:port" format.
Returns
A unique pointer to the client or an error if creation fails.

The documentation for this class was generated from the following file: