Documentation
¶
Index ¶
- type Core
- func (c *Core) Conf() config.Config
- func (c *Core) CreateConfig(conf config.Config) error
- func (c *Core) DeleteConfig(id string) error
- func (c *Core) GetConfigs() ([]*config.Config, error)
- func (c *Core) Monitor() error
- func (c *Core) NetworkInfo() network.Network
- func (c *Core) RegisterEventListener(channel chan *event.Event) int
- func (c *Core) RemoveEventListener(id int)
- func (c *Core) SetConfig(id string) error
- func (c *Core) StartDaemon(errorReporter chan error)
- func (c *Core) Stop() error
- func (c *Core) UpdateConfig(conf config.Config) error
- type EventListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core represents our core data structure through which the ui can interact with the backend
func CreateNewAppCore ¶ added in v1.0.0
CreateNewAppCore creates and returns a new instance of *core.Core
func New ¶
func New( networkInfo network.Network, conf *config.Config, configService config.Service, discovery discovery.Service, discoveryEvtChan chan *event.Event, ) *Core
New returns new core module for given configuration
func (*Core) CreateConfig ¶
CreateConfig creates a new config
func (*Core) DeleteConfig ¶
DeleteConfig deletes a configuration
func (*Core) GetConfigs ¶
GetConfigs returns all stored configs
func (*Core) Monitor ¶
Monitor starts the processes for monitoring and tracking devices on the configured network
func (*Core) NetworkInfo ¶ added in v1.0.0
func (*Core) RegisterEventListener ¶
RegisterEventListener registers a channel as a listener for events
func (*Core) RemoveEventListener ¶
RemoveEventListener removes and closes a channel previously registered as a listener
func (*Core) StartDaemon ¶
StartDaemon starts the network monitoring processes in a goroutine
type EventListener ¶
type EventListener struct {
// contains filtered or unexported fields
}
EventListener represents a registered listener for events