Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct { // LogDAO provides access to the log events LogRepository *repository.LogRepository // contains filtered or unexported fields }
Watcher notifies subscribers of new events whenever the log file is written to
func (*Watcher) Start ¶
Start begins watching for log file changes and notifies subscribers accordingly
func (*Watcher) Subscribe ¶
Subscribe starts sending all events that match the query over the given channel. The query will be updated with the a new SinceUUID value whenever events are published to the channel.
func (*Watcher) Unsubscribe ¶
Unsubscribe stops publishing events to the channel but does not close the channel
Click to show internal directories.
Click to hide internal directories.