Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVMemberList ¶ added in v0.58.0
type KVMemberList struct {
// contains filtered or unexported fields
}
KVMemberList keeps and manages cluster memberlist set.
func NewKVMemberList ¶ added in v0.58.0
NewKVMemberList will create a new KVMemberList instance using the given configuration.
func (*KVMemberList) GetMember ¶ added in v0.58.0
func (ml *KVMemberList) GetMember(instanceID string) (m clustermodel.Member, ok bool)
GetMember returns cluster member info associated to an identifier.
func (*KVMemberList) GetMembers ¶ added in v0.58.0
func (ml *KVMemberList) GetMembers() map[string]clustermodel.Member
GetMembers returns all cluster registered members.
type MemberList ¶
type MemberList interface { // GetMember returns cluster member info associated to an identifier. GetMember(instanceID string) (m clustermodel.Member, ok bool) // GetMembers returns all cluster registered members. GetMembers() map[string]clustermodel.Member // Start initializes memberlist. Start(ctx context.Context) error // Stop releases all underlying memberlist resources. Stop(ctx context.Context) error }
MemberList defines cluster memberlist interface.
func NewNop ¶ added in v0.58.0
func NewNop() MemberList
NewNop returns a memberlist that doesn't do anything.
Click to show internal directories.
Click to hide internal directories.