persist

package
v0.220526.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Persist

type Persist struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Binds State{Load,Store} to persistent storage

func (*Persist) Init

func (p *Persist) Init(tag string, target Stater, root string, enabled bool, log *log2.Log) error

func (*Persist) Load

func (p *Persist) Load() error

func (*Persist) Store

func (p *Persist) Store() error

type Stater

Jump to

Keyboard shortcuts

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