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 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"` }
Click to show internal directories.
Click to hide internal directories.