conf

package
v0.0.0-...-a5d30ca Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config        Conf
	ConfDir       = GetConfDir()
	ConfFile      = ConfDir + "/config.json"
	DefaultDBFile = ConfDir + "/database.db"
)

Functions

func GetConfDir

func GetConfDir() string

func NewConfigurationFile

func NewConfigurationFile()

Types

type Conf

type Conf struct {
	DatabaseFile string `json:"database"`
	Lang         string `json:"lang"`
	Theme        string `json:"theme"`
	Password     struct {
		Enabled bool   `json:"enabled"`
		Hash    string `json:"hash"`
	} `json:"password"`
}

func GetConfData

func GetConfData() Conf

func (*Conf) Update

func (c *Conf) Update()

Jump to

Keyboard shortcuts

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