storage

package
v0.0.0-...-44e5b1b Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(reader Reader, writer Writer) error

Types

type FeatureToggle

type FeatureToggle struct {
	Description string    `json:"description,omitempty" yaml:"description"`
	Value       bool      `json:"value" yaml:"value"`
	ExpireTime  time.Time `json:"expireTime,omitempty" yaml:"expireTime"`
}

type FeatureToggles

type FeatureToggles map[string]FeatureToggle

type Reader

type Reader interface {
	Get(name string) (*FeatureToggle, error)
	GetAll() (FeatureToggles, error)
}

type ReaderWriter

type ReaderWriter interface {
	Reader
	Writer
}

type Writer

type Writer interface {
	Set(name string, toggle FeatureToggle) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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