Documentation ¶
Index ¶
- func GetClusterConfig(hosts []string) ([]string, error)
- func ReconfigureCluster(hosts []string, desiredConfig []string) ([]string, error)
- type Member
- type MemberSet
- func (ms MemberSet) Add(m *Member)
- func (ms MemberSet) ClientHostList() []string
- func (ms MemberSet) ClusterConfig() []string
- func (ms MemberSet) Diff(other MemberSet) MemberSet
- func (ms MemberSet) IsEqual(other MemberSet) bool
- func (ms MemberSet) MaxMemberID() int
- func (ms MemberSet) PickOne() *Member
- func (ms MemberSet) Remove(name string)
- func (ms MemberSet) Size() int
- func (ms MemberSet) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterConfig ¶
Types ¶
type Member ¶
type MemberSet ¶
func NewMemberSet ¶
func (MemberSet) ClientHostList ¶
func (MemberSet) ClusterConfig ¶
func (MemberSet) IsEqual ¶
IsEqual tells whether two member sets are equal by checking - they have the same set of members and member equality are judged by Name only.
func (MemberSet) MaxMemberID ¶
Click to show internal directories.
Click to hide internal directories.