store

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEntryStore added in v0.3.0

type CacheEntryStore interface {
	EntryStore
	configcat.ConfigCache
}

func NewInMemoryStorage

func NewInMemoryStorage() CacheEntryStore

type EntryStore

type EntryStore interface {
	LoadEntry() *EntryWithEtag
	ComposeBytes() []byte
	StoreEntry(data []byte, fetchTime time.Time, eTag string)
}

func NewEntryStore

func NewEntryStore() EntryStore

type EntryWithEtag

type EntryWithEtag struct {
	ConfigJson []byte
	ETag       string
	FetchTime  time.Time
	Empty      bool
}

type Notifier

type Notifier interface {
	Close()
	Closed() <-chan struct{}
	Notify()
	Modified() <-chan struct{}
}

func NewNotifier

func NewNotifier() Notifier

type NotifyingStore added in v0.3.0

type NotifyingStore interface {
	CacheEntryStore
	Notifier
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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