Documentation
¶
Index ¶
- func RegisterPlugin(plugin string, newFunc NewPlugin)
- type Handler
- func (handler *Handler) Close()
- func (handler *Handler) GetSubjects() (subjects []string, err error)
- func (handler *Handler) GetSystemID() (systemdID string, err error)
- func (handler *Handler) GetUnitModel() (unitModel string, err error)
- func (handler *Handler) SubjectsChangedChannel() (channel <-chan []string)
- type IdentModule
- type NewPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶
RegisterPlugin registers module plugin.
Types ¶
type Handler ¶
Handler identification handler.
func (*Handler) GetSubjects ¶
GetSubjects returns current subjects.
func (*Handler) GetSystemID ¶
GetSystemID return system ID.
func (*Handler) GetUnitModel ¶
GetUnitModel return unit model.
func (*Handler) SubjectsChangedChannel ¶
SubjectsChangedChannel returns subjects changed channel.
type IdentModule ¶
type IdentModule interface { GetSystemID() (systemdID string, err error) GetUnitModel() (unitModel string, err error) GetSubjects() (subjects []string, err error) SubjectsChangedChannel() (channel <-chan []string) Close() (err error) }
IdentModule identification module interface.
type NewPlugin ¶
type NewPlugin func(configJSON json.RawMessage) (module IdentModule, err error)
NewPlugin plugin new function.
Click to show internal directories.
Click to hide internal directories.