watch

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Alloc      string
	AllocEval  string
	AllocJob   string
	AllocNode  string
	Eval       string
	EvalJob    string
	Job        string
	JobSummary string
	Node       string
	Table      string
}

Item describes the scope of a watch. It is used to provide a uniform input for subscribe/unsubscribe and notification firing. Specifying multiple fields does not place a watch on multiple items. Each Item describes exactly one scoped watch.

type Items

type Items map[Item]struct{}

Items is a helper used to construct a set of watchItems. It deduplicates the items as they are added using map keys.

func NewItems

func NewItems(items ...Item) Items

NewItems creates a new Items set and adds the given items.

func (Items) Add

func (wi Items) Add(i Item)

Add adds an item to the watch set.

Jump to

Keyboard shortcuts

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