config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_FILE_PART = "config.yaml"
View Source
const UNINITIALIZED = "UNINITIALIZED"

Variables

View Source
var Version string

Functions

func GetCacheDir

func GetCacheDir() string

func GetConfigDir

func GetConfigDir() string

func GetLogir

func GetLogir() string

func GetPidDir

func GetPidDir() string

func GetPort

func GetPort() string

Types

type Config

type Config struct {
	Token           string
	Address         string
	Port            string
	Library         string
	ShowArt         bool
	CacheMaxSizeMB  int
	CacheMaxAgeDays int
}

func GetConfig

func GetConfig() Config

func (*Config) Load

func (c *Config) Load()

func (*Config) Save

func (c *Config) Save()

func (*Config) SetToken

func (c *Config) SetToken(token string)

Jump to

Keyboard shortcuts

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