state

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	*domain.StateBase
	// contains filtered or unexported fields
}

State describes retrieval and persistence methods for storage.

func NewState

func NewState(factory coredb.TxnRunnerFactory, logger logger.Logger) *State

NewState returns a new state reference.

func (*State) GetFlag

func (s *State) GetFlag(ctx context.Context, flagName string) (bool, error)

GetFlag returns the value of a flag.

func (*State) SetFlag

func (s *State) SetFlag(ctx context.Context, flagName string, value bool, description string) error

SetFlag sets the value of a flag. Description is used to describe the flag and its potential state.

Jump to

Keyboard shortcuts

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