cache

package
v0.0.0-...-ce1d5a6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCache

func InitCache()

InitCache Init basic state for cache

Types

type RuleCache

type RuleCache interface {
	CheckExistsById(id string) bool
	ForId(id string) (models.Rule, bool)
	ForName(name string) (models.Rule, bool)
	All() []models.Rule
	Add(rule models.Rule)
	Update(rule models.Rule)
	RemoveByName(name string)
	UpdateStateRule(id string, index int, state bool)
	GetStateRule(id string, index int) bool
}

func Rules

func Rules() RuleCache

Jump to

Keyboard shortcuts

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