Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HTTPAddr contains the port used by this node HTTPAddr string )
Functions ¶
This section is empty.
Types ¶
type JoinRequest ¶
type JoinRequest struct { Addr string `json:"addr"` Id interface{} `json:"id"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a type to be used by the raft consensus protocol consists of a base http address and a store in the finite state machine
func NewService ¶
NewService is used to initialize a new service struct parameters: addr (a string of a http address), store (a store of node details) returns: *Service (a newly initialized service struct)
Click to show internal directories.
Click to hide internal directories.