Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FormatJSON json格式 FormatJSON = "json" // FormatText test格式 FormatText = "text" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnOptions ¶
type ConnOptions struct { Username string `json:"username" mapstructure:"username"` Password string `json:"password" mapstructure:"password"` Ping bool `json:"ping" mapstructure:"ping"` Address string `json:"address" mapstructure:"address"` }
ConnOptions 连接选项参数
type LogOptions ¶
type LogOptions struct { Formatter string `json:"formatter" mapstructure:"formatter"` TimeFormatter string `json:"time-formatter" mapstructure:"time-formatter"` Level string `json:"level" mapstructure:"level"` }
LogOptions 日志选项参数
type Options ¶
type Options struct { ConnOptions *ConnOptions `json:"conn" mapstructure:"conn"` LogOptions *LogOptions `json:"log" mapstructure:"log"` }
Options 服务自定义选项
Click to show internal directories.
Click to hide internal directories.