config

package
v0.0.0-...-c5d1e48 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Address             string `id:"address" short:"a" default:"0.0.0.0:14914" desc:"Listening address"`
	Config              string `id:"config" short:"c" default:"$HOME/.config/sweetlisa" desc:"SweetLisa configuration directory"`
	CNProxy             string `id:"cn-proxy" desc:"The https proxy for sweetlisa to connect to the servers and relays in China"`
	BotToken            string `id:"bot-token"`
	Host                string `id:"host" default:"example.org"`
	NameserverName      string `id:"nameserver-name" desc:"nameserver name of given token"`
	NameserverToken     string `id:"nameserver-token" desc:"nameserver token to set DNS for BitterJohn's TLS challenge"`
	LogLevel            string `id:"log-level" default:"info" desc:"Optional values: trace, debug, info, warn or error"`
	LogFile             string `id:"log-file" desc:"The path of log file"`
	LogMaxDays          int64  `id:"log-max-days" default:"3" desc:"Maximum number of days to keep log files"`
	LogDisableColor     bool   `id:"log-disable-color"`
	LogDisableTimestamp bool   `id:"log-disable-timestamp"`
}

func GetConfig

func GetConfig() *Params

Jump to

Keyboard shortcuts

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