settings

package
v0.0.0-...-f9c4fa2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScheduleNever   = "never"
	ScheduleDaily   = "daily"
	ScheduleWeekly  = "weekly"
	ScheduleMonthly = "monthly"
)

Variables

This section is empty.

Functions

func GetConfigAsKV

func GetConfigAsKV() map[string]string

func GetConfigValue

func GetConfigValue(key string) interface{}

func SaveConfig

func SaveConfig() error

func SetConfigValue

func SetConfigValue(key string, value string) error

Types

type Config

type Config struct {
	Updates UpdatesConfig `json:"updates"`
}
var Cnf Config

func GetConfig

func GetConfig() Config

type UpdatesConfig

type UpdatesConfig struct {
	Schedule string `json:"schedule"`
	Smart    bool   `json:"smart"`
}

Jump to

Keyboard shortcuts

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