watcher

package
v0.0.0-...-a7271ac Latest Latest
Warning

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

Go to latest
Published: May 4, 2014 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 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.Caller, 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 params.RelationUnitsChange
	Stop() error
	Err() error
}

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

func NewRelationUnitsWatcher

func NewRelationUnitsWatcher(caller base.Caller, result params.RelationUnitsWatchResult) RelationUnitsWatcher

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.Caller, result params.StringsWatchResult) StringsWatcher

Jump to

Keyboard shortcuts

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