Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterServer ¶
Types ¶
type Config ¶
type Config struct {
Logger logging.Logger
NodeId string
RpcAddr string
// How frequently to gossip with other members
GossipInterval time.Duration
// Timeout for gossip requests, if a member doesn't respond within this time, it is considered a
// suspect
GossipTimeout time.Duration
// Each interval, a member will gossip to this many other members
GossipFactor int
}
Click to show internal directories.
Click to hide internal directories.