usertopology

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TopologyManager added in v0.19.1

type TopologyManager struct {
	etcd.MasterElection
	graph.DefaultGraphListener
	// contains filtered or unexported fields
}

TopologyManager describes topology manager

func NewTopologyManager added in v0.19.1

func NewTopologyManager(etcdClient *etcd.Client, nodeHandler *api.NodeRuleAPI, edgeHandler *api.EdgeRuleAPI, g *graph.Graph) *TopologyManager

NewTopologyManager returns new topology manager

func (*TopologyManager) OnNodeAdded added in v0.19.1

func (tm *TopologyManager) OnNodeAdded(n *graph.Node)

OnNodeAdded event

func (*TopologyManager) OnNodeUpdated added in v0.19.1

func (tm *TopologyManager) OnNodeUpdated(n *graph.Node, ops []graph.PartiallyUpdatedOp)

OnNodeUpdated event

func (*TopologyManager) OnStartAsMaster added in v0.19.1

func (tm *TopologyManager) OnStartAsMaster()

OnStartAsMaster event

func (*TopologyManager) OnStartAsSlave added in v0.19.1

func (tm *TopologyManager) OnStartAsSlave()

OnStartAsSlave event

func (*TopologyManager) OnSwitchToMaster added in v0.19.1

func (tm *TopologyManager) OnSwitchToMaster()

OnSwitchToMaster event

func (*TopologyManager) OnSwitchToSlave added in v0.19.1

func (tm *TopologyManager) OnSwitchToSlave()

OnSwitchToSlave event

func (*TopologyManager) Start added in v0.19.1

func (tm *TopologyManager) Start()

Start start the topology manager

func (*TopologyManager) Stop added in v0.19.1

func (tm *TopologyManager) Stop()

Stop stop the topology manager

Jump to

Keyboard shortcuts

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