Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyWatcher ¶
type NotifyWatcher struct {
// contains filtered or unexported fields
}
NotifyWatcher will send events when something changes. It does not send content for those changes.
func NewNotifyWatcher ¶
func NewNotifyWatcher(caller common.Caller, result params.NotifyWatchResult) *NotifyWatcher
If an API call returns a NotifyWatchResult, you can use this to turn it into a local Watcher.
func (*NotifyWatcher) Changes ¶
func (w *NotifyWatcher) Changes() <-chan struct{}
Changes returns a channel that receives a value when a given entity changes in some way.
type StringsWatcher ¶
type StringsWatcher struct {
// contains filtered or unexported fields
}
StringsWatcher will send events when something changes. The content of the changes is a list of strings.
func NewStringsWatcher ¶
func NewStringsWatcher(caller common.Caller, watchCall string) *StringsWatcher
func (*StringsWatcher) Changes ¶
func (w *StringsWatcher) Changes() <-chan []string
Changes returns a channel that receives a list of strings of watched entites with changes.
Click to show internal directories.
Click to hide internal directories.