settings

package
v0.0.0-...-b4e0e05 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistentAdapter

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

adapter which saves or loads settings to/from disk

func NewPersistentAdapter

func NewPersistentAdapter() *PersistentAdapter

func (*PersistentAdapter) Get

func (pa *PersistentAdapter) Get() (cfg *domain.Settings, err error)

func (*PersistentAdapter) Load

func (pa *PersistentAdapter) Load() (err error)

reads settings from disk

func (*PersistentAdapter) Save

func (pa *PersistentAdapter) Save(cfg *domain.Settings) (err error)

saves settings to disk

Jump to

Keyboard shortcuts

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