cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlagsCache map[string]flags.Flag

Functions

func Close

func Close()

func Init

func Init() map[string]flags.Flag

InitFlagCache init the cache of all flags. We are using a singleton to avoid multiple init and to be sure we have only one cache for all the flags in our system.

func UpdateCache

func UpdateCache(loadedFlags []byte) error

UpdateCache retrieve the flags from the backend file and update the cache, we are using a mutex during the update to be sure to stay consistent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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