Documentation ¶
Overview ¶
Server container for a Raft Consensus Module. Exposes Raft to the network and enables RPCs between Raft peers.
Eli Bendersky [https://eli.thegreenplace.net] This code is in the public domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consensus ¶
type Consensus struct {
// contains filtered or unexported fields
}
Consensus provides implementation of consensus module
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ConnectToPeer ¶
ConnectToPeer provides connecting to the peer
func (*Server) DisconnectAll ¶
func (s *Server) DisconnectAll()
DisconnectAll provides disconnecting of all clients
func (*Server) DisconnectPeer ¶
DisconnectPeer disconnects this server from the peer identified by peerId.
func (*Server) GetListenAddr ¶
GetListenAddr returns net address
Click to show internal directories.
Click to hide internal directories.