cache

package
v0.0.0-...-d221b79 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Caches map[string]shared.Cache

Caches .

Functions

func GetCache

func GetCache(cacheType string) shared.Cache

GetCache .

func GetElkStaticDevices

func GetElkStaticDevices(index, url string) ([]statedefinition.StaticDevice, *nerr.E)

GetElkStaticDevices queries the provided index in ELK and unmarshals the records into a list of static devices

func GetElkStaticRooms

func GetElkStaticRooms(index, url string) ([]statedefinition.StaticRoom, *nerr.E)

GetElkStaticRooms retrieves the list of static rooms from the privided elk index - assumes the ELK_DIRECT_ADDRESS env variable.

func InitializeCaches

func InitializeCaches()

InitializeCaches initializes the caches with data from ELK

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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