cache

package
v0.0.0-...-ae4999c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 1 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 interface {
	Flush()
	Foreach(func(key string, obj interface{}))
	Save(obj interface{}) error
	Remove(obj interface{})

	LoadConfig(interface{}) (model.Config, error)
	LoadOrganization(interface{}) (model.Organization, error)
	LoadUser(interface{}) (model.User, error)
	LoadRole(interface{}) (model.Role, error)
	LoadPolicy(interface{}) (model.Policy, error)
	LoadGroup(interface{}) (model.Group, error)
	LoadDevice(interface{}) (model.Device, error)
	LoadMeasure(interface{}) (model.Measure, error)
	LoadEquipment(interface{}) (model.Equipment, error)
	LoadState(interface{}) (model.State, error)
	LoadApiResource(interface{}) (model.ApiResource, error)
	LoadAlarm(interface{}) (model.Alarm, error)
	LoadComment(interface{}) (model.Comment, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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