appconfig

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	UUID    string
	Name    string
	State   int
	Comment string
	App     string
	Config  string
}

func (*App) Marshal

func (a *App) Marshal(v interface{}) error

func (App) Unmarshal

func (a App) Unmarshal(v interface{}) error

type AppConfig

type AppConfig struct {
	Mut  sync.RWMutex
	File AppConfigFile
}

func (*AppConfig) Add

func (c *AppConfig) Add(a App)

func (*AppConfig) Delete

func (c *AppConfig) Delete(uid string)

func (*AppConfig) Edit

func (c *AppConfig) Edit(uid string, a App) error

func (*AppConfig) Get

func (c *AppConfig) Get(uid string) (App, error)

func (*AppConfig) List

func (c *AppConfig) List() []App

func (*AppConfig) LoadConfig

func (c *AppConfig) LoadConfig() error

func (*AppConfig) SaveConfig

func (c *AppConfig) SaveConfig() error

type AppConfigFile

type AppConfigFile struct {
	Header config.FileHeader
	Apps   []App
}

Jump to

Keyboard shortcuts

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