hccm

package
v0.0.0-...-35d1bc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2018 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Cluster Membership based on memberlist.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(conf *memberlist.Config, ne *core.NodeEngine, port int) (*rpcdp.Dispatcher, *gorpc.Server)

Types

type ObserverDelegate

type ObserverDelegate struct {
	Obs *nodes.ClusterObserver
}

func (*ObserverDelegate) NotifyAlive

func (o *ObserverDelegate) NotifyAlive(peer *memberlist.Node) error

func (*ObserverDelegate) NotifyJoin

func (o *ObserverDelegate) NotifyJoin(n *memberlist.Node)

NotifyJoin is invoked when a node is detected to have joined. The Node argument must not be modified.

func (*ObserverDelegate) NotifyLeave

func (o *ObserverDelegate) NotifyLeave(n *memberlist.Node)

NotifyLeave is invoked when a node is detected to have left. The Node argument must not be modified.

func (*ObserverDelegate) NotifyMerge

func (o *ObserverDelegate) NotifyMerge(peers []*memberlist.Node) error

func (*ObserverDelegate) NotifyUpdate

func (o *ObserverDelegate) NotifyUpdate(*memberlist.Node)

NotifyUpdate is invoked when a node is detected to have updated, usually involving the meta data. The Node argument must not be modified.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL