Documentation
¶
Index ¶
- Variables
- type Destinations
- type Manager
- func (m *Manager) AddDestination(nodeID types.NodeID, versionedName types.NodeVersionName, ...) error
- func (m *Manager) DestinationExist(targetAction types.TargetAction) bool
- func (m *Manager) Destinations() Destinations
- func (m *Manager) Nodes() Nodes
- func (m *Manager) RemoveNodeID(nodeID types.NodeID)
- func (m *Manager) UpdateLastSeen(nodeID types.NodeID)
- type Nodes
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNodeNameIDExist = errors.New("node id for given name already exist") ErrNodeNameIDNotExist = errors.New("node id for given name does not exist") )
Functions ¶
This section is empty.
Types ¶
type Destinations ¶
type Destinations map[types.NodeVersionName]map[types.BlockName]map[types.ActionName][]types.NodeID
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager struct
func NewManager ¶
NewManager creates new Manager struct
func (*Manager) AddDestination ¶
func (m *Manager) AddDestination(nodeID types.NodeID, versionedName types.NodeVersionName, blockName types.BlockName, actions []types.ActionName) error
AddDestination adds information about topology of known nodes to manager
func (*Manager) DestinationExist ¶
func (m *Manager) DestinationExist(targetAction types.TargetAction) bool
func (*Manager) Destinations ¶
func (m *Manager) Destinations() Destinations
func (*Manager) RemoveNodeID ¶
RemoveNodeID removes node id from all mentions in the topology
func (*Manager) UpdateLastSeen ¶
Click to show internal directories.
Click to hide internal directories.