config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type John

type John struct {
	Listen string `json:"listen,omitempty" default:"0.0.0.0:8880" desc:"Address to listen on"`
	Log    Log    `json:"log,omitempty"`

	Name     string `json:"name" required:"" desc:"Server name to register"`
	Hostname string `json:"hostname" required:"" desc:"Server hostname for users to connect"`
	Port     int    `` /* 131-byte string literal not displayed */
	Ticket   string `json:"ticket" required:"" desc:"Ticket from SweetLisa"`
}

type Lisa

type Lisa struct {
	Host          string `json:"host" required:"" desc:"The host of SweetLisa" json:""`
	ValidateToken string `json:"validateToken" required:"" desc:"The CDN token to validate whether SweetLisa can know user's IP"`
}

type Log

type Log struct {
	Level            string `json:"level,omitempty" default:"warn" desc:"Optional values: trace, debug, info, warn or error"`
	File             string `json:"file,omitempty" desc:"The path of log file"`
	MaxDays          int64  `json:"maxDays,omitempty" default:"3" desc:"Maximum number of days to keep log files"`
	DisableColor     bool   `json:"disableColor,omitempty"`
	DisableTimestamp bool   `json:"disableTimestamp,omitempty"`
}

type Params

type Params struct {
	Lisa Lisa `json:"lisa"`
	John John `json:"john"`
}
var ParamsObj Params

Jump to

Keyboard shortcuts

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