Documentation ¶ Index ¶ func AddListener(listener ListenerFunc) (id int64) func RemoveListener(id int64) func Start(element *data.Element) (e error) func Stop() type ListenerFunc type ListenerStatus Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AddListener ¶ func AddListener(listener ListenerFunc) (id int64) AddListener . func RemoveListener ¶ func RemoveListener(id int64) RemoveListener . func Start ¶ func Start(element *data.Element) (e error) Start . func Stop ¶ func Stop() Stop . Types ¶ type ListenerFunc ¶ type ListenerFunc func(*ListenerStatus) ListenerFunc . type ListenerStatus ¶ type ListenerStatus struct { Run bool `json:"run,omitempty"` ID uint64 `json:"id,omitempty"` Subscription uint64 `json:"subscription,omitempty"` Name string `json:"name,omitempty"` } ListenerStatus . Source Files ¶ View all Source files service.go Click to show internal directories. Click to hide internal directories.