Documentation ¶ Index ¶ Variables type Event func NewEvent(ctx context.Context, data map[string]interface{}) *Event func (ev *Event) String() string func (ev *Event) WithTopic(topic string) *Event type EventHandler type EventPayload type Instance type Role Constants ¶ This section is empty. Variables ¶ View Source var ErrRoleNotConfigured = errors.New("role: Not configured") Functions ¶ This section is empty. Types ¶ type Event ¶ type Event struct { Payload EventPayload Context context.Context // contains filtered or unexported fields } func NewEvent ¶ func NewEvent(ctx context.Context, data map[string]interface{}) *Event func (*Event) String ¶ func (ev *Event) String() string func (*Event) WithTopic ¶ func (ev *Event) WithTopic(topic string) *Event type EventHandler ¶ type EventHandler func(ev *Event) type EventPayload ¶ type EventPayload struct { Data map[string]interface{} RelatedObjectKey *storage.Key RelatedObjectOptions []clientv3.OpOption } type Instance ¶ type Instance interface { KV() *storage.Client Log() *zap.Logger DispatchEvent(topic string, ev *Event) AddEventListener(topic string, handler EventHandler) } type Role ¶ type Role interface { Start(ctx context.Context, config []byte) error Stop() } Source Files ¶ View all Source files role.go Directories ¶ Show internal Expand all Path Synopsis api auth types backup types debug types dhcp oui Updated version of https://github.com/dutchcoders/go-ouitools Package go-oui provides functions to work with MAC and OUI's Updated version of https://github.com/dutchcoders/go-ouitools Package go-oui provides functions to work with MAC and OUI's types discovery types dns types utils etcd monitoring tsdb types Click to show internal directories. Click to hide internal directories.