storage

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind int
const (
	MemKind   Kind = iota // mem
	MongoKind             // mongo
)

func (Kind) String

func (i Kind) String() string

type Mem

type Mem struct {
	// contains filtered or unexported fields
}

func NewMem

func NewMem() *Mem

func (*Mem) Delete

func (s *Mem) Delete(ctx context.Context, flags []toggle.Flag) error

func (*Mem) Get

func (s *Mem) Get(ctx context.Context, serviceName string) ([]toggle.Flag, error)

func (*Mem) Save

func (s *Mem) Save(ctx context.Context, flags []toggle.Flag, initial bool) error

type Mongo

type Mongo struct {
	// contains filtered or unexported fields
}

func NewMongo

func NewMongo(ctx context.Context, url string) (*Mongo, error)

func (*Mongo) Delete

func (s *Mongo) Delete(ctx context.Context, flags []toggle.Flag) error

func (*Mongo) Get

func (s *Mongo) Get(ctx context.Context, serviceName string) ([]toggle.Flag, error)

func (*Mongo) Save

func (s *Mongo) Save(ctx context.Context, flags []toggle.Flag, initial bool) error

Jump to

Keyboard shortcuts

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