cacheagent

package
v0.0.0-...-6574dfe Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent

func NewCacheAgent

func NewCacheAgent(loader Loader, interval time.Duration) (*Agent, error)

func (*Agent) GetData

func (instance *Agent) GetData() interface{}

func (*Agent) Stop

func (instance *Agent) Stop()

type Loader

type Loader interface {
	Load(interface{}) (interface{}, error)
}

Jump to

Keyboard shortcuts

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