watch

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: MPL-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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