watcher

package
v0.0.0-...-acd7349 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2013 License: AGPL-3.0 Imports: 5 Imported by: 0

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.

func (*NotifyWatcher) Err

func (w *NotifyWatcher) Err() error

func (*NotifyWatcher) Stop

func (w *NotifyWatcher) Stop() error

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.

func (*StringsWatcher) Err

func (w *StringsWatcher) Err() error

func (*StringsWatcher) Stop

func (w *StringsWatcher) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL