cfg

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	Modules []CfgModule
	Layout  struct {
		Rows []struct {
			Cells []struct {
				ModuleID string
				RatioX   int
				RatioY   int
			}
		}
	}
	Theme theme.Theme
	Log   struct {
		File  string
		Level string
	}
}

func NewCfg

func NewCfg() (Cfg, error)

func (*Cfg) ParseString

func (cfg *Cfg) ParseString(val string) interface{}

type CfgModule

type CfgModule struct {
	ID              string
	Name            string
	Path            string
	Enabled         bool
	Config          map[string]string
	RefreshInterval string
}

Jump to

Keyboard shortcuts

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