state

package
v1.1.24 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Set    = "Set"
	Append = "Append"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Facade

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

func NewFacade

func NewFacade(state *State) *Facade

func (*Facade) Append

func (f *Facade) Append(k string, v interface{})

func (*Facade) Bool

func (f *Facade) Bool(key string) bool

func (*Facade) Data

func (f *Facade) Data() map[string]string

func (*Facade) Dump

func (f *Facade) Dump() []StateMod

func (*Facade) Facade

func (f *Facade) Facade() *Facade

func (*Facade) Float64

func (f *Facade) Float64(key string) float64

func (*Facade) Int

func (f *Facade) Int(key string) int

func (*Facade) Int64

func (f *Facade) Int64(key string) int64

func (*Facade) Set

func (f *Facade) Set(k string, v interface{})

func (*Facade) String

func (f *Facade) String(key string) string

func (*Facade) Update

func (f *Facade) Update(data map[string]string)

func (*Facade) Value

func (f *Facade) Value(key string) interface{}

type State

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

func NewState

func NewState() *State

func (*State) Append

func (s *State) Append(k string, v interface{})

func (*State) Bool

func (s *State) Bool(key string) bool

func (*State) Data

func (s *State) Data() map[string]string

func (*State) Dump

func (s *State) Dump() []StateMod

func (*State) Facade

func (s *State) Facade() *Facade

func (*State) Float64

func (s *State) Float64(key string) float64

func (*State) Int

func (s *State) Int(key string) int

func (*State) Int64

func (s *State) Int64(key string) int64

func (*State) Set

func (s *State) Set(k string, v interface{})

func (*State) String

func (s *State) String(key string) string

func (*State) Update

func (s *State) Update(data map[string]string)

type StateMod

type StateMod struct {
	Action string
	Key    string
	Value  string
}

Jump to

Keyboard shortcuts

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