watcher

package
v0.0.0-...-f19ae85 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 6 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 interface {
	Changes() <-chan struct{}
	Stop() error
	Err() error
}

NotifyWatcher will send events when something changes. It does not send content for those changes.

func NewNotifyWatcher

func NewNotifyWatcher(caller base.APICaller, result params.NotifyWatchResult) NotifyWatcher

If an API call returns a NotifyWatchResult, you can use this to turn it into a local Watcher.

type RelationUnitsWatcher

type RelationUnitsWatcher interface {
	Changes() <-chan multiwatcher.RelationUnitsChange
	Stop() error
	Err() error
}

RelationUnitsWatcher will send events when something changes. The content for the changes is a params.RelationUnitsChange struct.

type StringsWatcher

type StringsWatcher interface {
	Changes() <-chan []string
	Stop() error
	Err() error
}

StringsWatcher will send events when something changes. The content for the changes is a list of strings.

func NewStringsWatcher

func NewStringsWatcher(caller base.APICaller, result params.StringsWatchResult) StringsWatcher

Jump to

Keyboard shortcuts

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