config

package
v0.1.2-beta Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

func NewComponent

func NewComponent(db *file.DB) *Component

func (*Component) GetCfg

func (c *Component) GetCfg() (*Model, error)

func (*Component) Init

func (c *Component) Init() error

func (*Component) Save

func (c *Component) Save(m *Model) error

type Model

type Model struct {
	Tags               []string `json:"tags"`
	StatusesForStart   []string `json:"statusesForStart"`
	AutoChangeStatusTo string   `json:"autoChangeStatusTo"`
}

func (*Model) AsMap

func (m *Model) AsMap() map[string]string

func (*Model) Set

func (m *Model) Set(key string, val string) error

Jump to

Keyboard shortcuts

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