state

package
v0.0.0-...-5aaea72 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

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

func NewMetadata

func NewMetadata(gormDb *gorm.DB) (*Metadata, error)

func (*Metadata) Load

func (m *Metadata) Load() error

func (*Metadata) Save

func (m *Metadata) Save() error

type State

type State struct {
	sync.Mutex

	Metadata *Metadata
	// contains filtered or unexported fields
}

func GetState

func GetState() *State

func Load

func Load(cfg *config.Config) (*State, error)

func (*State) Load

func (s *State) Load() error

func (*State) Save

func (s *State) Save() error

Jump to

Keyboard shortcuts

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