Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
Protocol is an implementation of the Client interface providing the Raft consensus protocol
func NewProtocol ¶
func NewProtocol(config *config.ProtocolConfig) *Protocol
NewProtocol returns a new Raft Protocol instance
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the Raft consensus protocol server
func NewServer ¶
func NewServer(clusterConfig cluster.Cluster, registry *node.Registry, protocolConfig *config.ProtocolConfig) *Server
NewServer returns a new Raft consensus protocol server
func (*Server) WaitForReady ¶
WaitForReady blocks the current goroutine until the server is ready
Click to show internal directories.
Click to hide internal directories.