Documentation ¶
Index ¶
- type OptionFn
- type Serf
- func (s *Serf) Addr() string
- func (s *Serf) Bootstrap(node *jocko.ClusterMember, reconcileCh chan<- *jocko.ClusterMember) error
- func (s *Serf) Cluster() []*jocko.ClusterMember
- func (s *Serf) ID() int32
- func (s *Serf) Join(addrs ...string) (int, error)
- func (s *Serf) Member(memberID int32) *jocko.ClusterMember
- func (s *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 (s *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 (s *Serf) Cluster() []*jocko.ClusterMember
Cluster is the list of all nodes connected to Serf
Click to show internal directories.
Click to hide internal directories.