state

package
v0.0.0-...-b8317c4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT 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 {
	// contains filtered or unexported fields
}

Client functionality

func NewState

func NewState(s string, initRaw []byte) (*State, error)

func (State) Get

func (s State) Get(path ...string) (any, error)

TEST: State values can be retrieved.

func (*State) Set

func (s *State) Set(val any, path ...string) error

TEST: State updates are expressed as jsonpatch-compatible operations. TEST: State updates are validated after performing a jsonpatch.

Jump to

Keyboard shortcuts

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