Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTLSPolicy = TLSOnly
View Source
const DefaultTLSPort uint = 443
Variables ¶
View Source
var Logger *log.Logger
Functions ¶
func LoadConfig ¶
func LoadConfig(versionInfo string)
Types ¶
type Setting ¶
type Setting struct { IP []string // IP addresses binded to ran server. Port uint // HTTP port. Default is 8080. ShowConf bool // If show config info in the log. Debug bool // If turns on debug mode. Default is false. TLS *TLSOption // If is nil, TLS is off. server.Config // contains filtered or unexported fields }
Setting about ran server
var Config *Setting
Click to show internal directories.
Click to hide internal directories.