cache

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	// Update updates system status from status.
	UpdateStatus(status *pb.SystemStatus) error

	// Read obtains last known system status.
	// If nil status is returned, empty system status will be
	// assumed as defined by pb.EmptyStatus.
	RecentStatus() (*pb.SystemStatus, error)

	// Recycle is a periodic request to recycle any resources
	// cache might be holding on to. The request can also be used
	// to clean up stale state.
	Recycle() error

	// Close resets the cache and closes any resources.
	Close() error
}

Cache provides access to recent health status information collected on a per-node basis. All methods are expected to be thread-safe.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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