config

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 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 BandwidthLimit added in v0.1.15

type BandwidthLimit struct {
	Enable           bool  `json:"enable" default:"false"`
	ResetDay         uint8 `json:"resetDay,omitempty" desc:"ResetDay is the day of every month to reset the limit of bandwidth. Zero means never reset."`
	UplinkLimitGiB   int64 `json:"uplinkLimitGiB,omitempty" desc:"UplinkLimitGiB is the limit of uplink bandwidth in GiB. Zero means no limit."`
	DownlinkLimitGiB int64 `json:"downlinkLimitGiB,omitempty" desc:"DownlinkLimitGiB is the limit of downlink bandwidth in GiB Zero means no limit."`
	TotalLimitGiB    int64 `` /* 126-byte string literal not displayed */
}

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"`
	Protocol string `json:"protocol,omitempty" default:"vmess"`

	Name     string `json:"name" required:"" desc:"Server name to register"`
	Hostname string `json:"hostname" required:"" desc:"Server hostnames for users to connect (split by \",\")"`
	Port     int    `` /* 131-byte string literal not displayed */
	Ticket   string `json:"ticket" required:"" desc:"Ticket from SweetLisa"`

	BandwidthLimit BandwidthLimit `json:"bandwidthLimit"`
	NoRelay        bool           `json:"noRelay"`

	MaxDrainN int64 `json:"maxDrainN" default:"-1" desc:"Max number of bytes to drain. default value is -1, which means unlimited."`
}

type Lisa

type Lisa struct {
	Host string `json:"host" required:"" desc:"The host of SweetLisa" json:""`
}

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