Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Type EventType `json:"type"` Setting settings.SettingField `json:"setting"` Value interface{} `json:"value"` }
Event is a type for accounts events.
type EventType ¶
type EventType string
EventType type for event types.
const (
EventTypeChanged EventType = "changed"
)
type SettingChangeCb ¶
type SettingChangeCb func(setting settings.SettingField, value interface{})
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher executes a given callback whenever an account gets added/removed
func NewWatcher ¶
func NewWatcher(feed *event.Feed, callback SettingChangeCb) *Watcher
Click to show internal directories.
Click to hide internal directories.