Documentation ¶
Index ¶
- type TopologyManager
- func (tm *TopologyManager) OnNodeAdded(n *graph.Node)
- func (tm *TopologyManager) OnNodeUpdated(n *graph.Node, ops []graph.PartiallyUpdatedOp)
- func (tm *TopologyManager) OnStartAsMaster()
- func (tm *TopologyManager) OnStartAsSlave()
- func (tm *TopologyManager) OnSwitchToMaster()
- func (tm *TopologyManager) OnSwitchToSlave()
- func (tm *TopologyManager) Start()
- func (tm *TopologyManager) Stop()
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
Click to show internal directories.
Click to hide internal directories.