Versions in this module Expand all Collapse all v1 v1.12.0 Jul 26, 2016 Changes in this version + var ErrCannotUnmarshalConfig = errors.New("membership: cannot unmarshal configuration change") + var ErrConfigChangeInvalid = errors.New(...) + var ErrIDExists = errors.New("membership: can't add node to cluster, node id is a duplicate") + var ErrIDNotFound = errors.New("membership: member not found in cluster list") + var ErrIDRemoved = errors.New("membership: node was removed during cluster lifetime") + type Cluster struct + func NewCluster() *Cluster + func (c *Cluster) AddMember(member *Member) error + func (c *Cluster) CanRemoveMember(from uint64, id uint64) bool + func (c *Cluster) Clear() + func (c *Cluster) GetMember(id uint64) *Member + func (c *Cluster) IsIDRemoved(id uint64) bool + func (c *Cluster) Members() map[uint64]*Member + func (c *Cluster) RemoveMember(id uint64) error + func (c *Cluster) Removed() []uint64 + func (c *Cluster) ReplaceMemberConnection(id uint64, newConn *Member) error + func (c *Cluster) ValidateConfigurationChange(cc raftpb.ConfChange) error + type Member struct + Conn *grpc.ClientConn