Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServiceAPIServer = ServiceID{Type: ServiceTypeAPIServer, Name: "APIServer"} ServiceInterfaceMonitor = ServiceID{Type: ServiceTypeInterfaceMonitor, Name: "InterfaceMonitor"} ServiceOSPF = ServiceID{Type: ServiceTypeOSPF, Name: "OSPF"} )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Bootstraps ¶
type ConfigManager ¶
func NewConfigManager ¶
func NewConfigManager(path string) (*ConfigManager, error)
func (*ConfigManager) UpdateConfig ¶
func (c *ConfigManager) UpdateConfig(conf *Config) error
type OSPFAreaConfig ¶
type OSPFAreaConfig struct { Cost uint16 HelloInterval uint16 RouterDeadInterval uint32 Interfaces map[string]OSPFInterfaceConfig }
type OSPFConfig ¶
type OSPFConfig struct { RouterID common.RouterID Cost uint16 HelloInterval uint16 RouterDeadInterval uint32 Areas map[common.AreaID]OSPFAreaConfig }
func (*OSPFConfig) InterfaceConfigs ¶
func (c *OSPFConfig) InterfaceConfigs() map[string]OSPFInterfaceConfig
type OSPFInterfaceConfig ¶
type ServiceID ¶
type ServiceID struct { Type ServiceType Name string }
type ServiceType ¶
type ServiceType int
const ( ServiceTypeAPIServer ServiceType = iota ServiceTypeInterfaceMonitor ServiceTypeOSPF )
func (ServiceType) String ¶
func (t ServiceType) String() string
Click to show internal directories.
Click to hide internal directories.