Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceIDByName ¶
InterfaceIDByName maps interface names to IDs
type InterfaceNameByID ¶
InterfaceNameByID maps IDs to interface names
type IntfMapperInterface ¶
type IntfMapperInterface interface { GetInterfaceIDByName(agent string) InterfaceIDByName GetInterfaceNameByID(agent string) InterfaceNameByID }
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
Mapper is a service that maps agents interface IDs to names
func New ¶
New creates a new Mapper and starts workers for all agents that periodicly renew interface mappings
func (*Mapper) GetInterfaceIDByName ¶
func (m *Mapper) GetInterfaceIDByName(agent string) InterfaceIDByName
GetInterfaceIDByName gets the InterfaceIDByName
func (*Mapper) GetInterfaceNameByID ¶
func (m *Mapper) GetInterfaceNameByID(agent string) InterfaceNameByID
GetInterfaceNameByID gets the InterfaceNameByID
Click to show internal directories.
Click to hide internal directories.