persistentstate

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateManager

type StateManager[State any] interface {
	RunGuarded(func(*State) error) error
	GetState() (*State, error)
}

StateManager ...

func GetStateManager

func GetStateManager[State any](statePath string, name string, initFn func(*State) *State) StateManager[State]

Jump to

Keyboard shortcuts

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