Documentation ¶
Index ¶
- type OptionFn
- type Serf
- func (b *Serf) Addr() string
- func (b *Serf) Bootstrap(node *jocko.ClusterMember, reconcileCh chan<- *jocko.ClusterMember) error
- func (b *Serf) Cluster() []*jocko.ClusterMember
- func (b *Serf) Join(addrs ...string) (int, error)
- func (b *Serf) Member(memberID int32) *jocko.ClusterMember
- func (b *Serf) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serf ¶
type Serf struct {
// contains filtered or unexported fields
}
Serf manages membership of Jocko cluster using Hashicorp Serf
func (*Serf) Bootstrap ¶
func (b *Serf) Bootstrap(node *jocko.ClusterMember, reconcileCh chan<- *jocko.ClusterMember) error
Bootstrap saves the node metadata and starts the serf agent Info of node updates is returned on reconcileCh channel
func (*Serf) Cluster ¶
func (b *Serf) Cluster() []*jocko.ClusterMember
Cluster is the list of all nodes connected to Serf
Click to show internal directories.
Click to hide internal directories.