cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache implements the ServiceRules interface using a local cache. The cache is refreshed periodically using the non-caching, REST API-based Amalagam8 Controller client.

func New

func New(rules api.RulesService, pollInterval time.Duration) (*Cache, error)

New constructs a new Cache. The cache is refreshed at the frequency specified by pollInterval using the provided RulesService object.

func (*Cache) ListRules

func (c *Cache) ListRules(filter *api.RuleFilter) (*api.RulesSet, error)

ListRules queries for the list of rules.

Jump to

Keyboard shortcuts

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