cache

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v0.6.0

type Cache interface {
	UpdateCache(loadedFlags []byte, fileFormat string) error
	Close()
	GetFlag(key string) (model.Flag, error)
	AllFlags() (FlagsCache, error)
}

func New added in v0.6.0

func New(notificationService Service) Cache

type FlagsCache

type FlagsCache map[string]model.FlagData

func (FlagsCache) Copy added in v0.7.0

func (fc FlagsCache) Copy() FlagsCache

type Service added in v0.7.0

type Service interface {
	Close()
	Notify(oldCache FlagsCache, newCache FlagsCache)
}

func NewNotificationService added in v0.7.0

func NewNotificationService(notifiers []notifier.Notifier) Service

Jump to

Keyboard shortcuts

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