Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IFace ¶
type IFace interface {
// @return Snapshot the current snapshot. This reference is safe to use forever, but will grow
// stale so should not be stored beyond when it is immediately needed.
Snapshot() snapshot.IFace
// Add a channel that will be written to when a new snapshot is available. "1" will be written
// to the channel as a sentinel.
// @param callback supplies the callback to add.
AddUpdateCallback(callback chan<- int)
}
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Implementation of Loader that watches a symlink and reads from the filesystem.
func (*Loader) AddUpdateCallback ¶
type Nil ¶
type Nil struct {
// contains filtered or unexported fields
}
Implementation of Loader with no backing store.
func (*Nil) AddUpdateCallback ¶
Click to show internal directories.
Click to hide internal directories.