Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { Open bool `mapstructure:"Open"` FilePath string `mapstructure:"FilePath"` MaxSize int `mapstructure:"MaxSize"` MaxBackups int `mapstructure:"MaxBackups"` MaxAge int `mapstructure:"MaxAge"` Compress bool `mapstructure:"Compress"` }
日志配置
type Server ¶
type Server struct { Mode string `mapstructure:"Mode"` Addr string `mapstructure:"Addr"` Port string `mapstructure:"Port"` ReadTimeout time.Duration `mapstructure:"ReadTimeout"` WriteTimeout time.Duration `mapstructure:"WriteTimeout"` }
服务地址和端口
type Setting ¶
type Setting struct {
// contains filtered or unexported fields
}
func NewSetting ¶
func (*Setting) ReadSection ¶
Click to show internal directories.
Click to hide internal directories.