Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Membership ¶
type Membership struct { Config // contains filtered or unexported fields }
func New ¶
func New(handler Handler, config Config) (*Membership, error)
New(handler, config) creates a Membership with the required configuration and even handler
func (*Membership) Leave ¶
func (m *Membership) Leave() error
Leave() tells this member to leave the Serf cluster.
func (*Membership) Members ¶
func (m *Membership) Members() []serf.Member
Members() returns a point-in-time snapshot of the cluster's Serf members.
Click to show internal directories.
Click to hide internal directories.