123456789101112131415161718192021222324252627282930 |
- package config
- type Base struct {
- HttpConfig struct {
- HttpPort string `json:"http_port" mapstructure:"http_port"`
- ReadTimeOut int `json:"read_timeout" mapstructure:"read_timeout"`
- WriteTimeOut int `json:"write_timeout" mapstructure:"write_timeout"`
- ServerPageRouter bool `json:"server_page_router" mapstructure:"server_page_router"`
- StaticRoot string `json:"static_root" mapstructure:"static_root"`
- StaticPrefix string `json:"static_prefix" mapstructure:"static_prefix"`
- TemplateDir string `json:"template_dir" mapstructure:"template_dir"`
- } `mapstructure:"http"`
- ZapConfig struct {
- Level string `mapstructure:"level" json:"level"`
- Format string `mapstructure:"format" json:"format"`
- Prefix string `mapstructure:"prefix" json:"prefix"`
- Director string `mapstructure:"director" json:"director"`
- LinkName string `mapstructure:"link-name" json:"linkName"`
- ShowLine bool `mapstructure:"show-line" json:"showLine"`
- EncodeLevel string `mapstructure:"encode-level" json:"encodeLevel"`
- StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktraceKey"`
- LogInConsole bool `mapstructure:"log-in-console" json:"logInConsole"`
- } `mapstructure:"zap"`
- RedisSession struct {
- RedisToken string `json:"redis_token" mapstructure:"redis_token"`
- } `mapstructure:"session"`
- JWT struct {
- SigningKey string `mspstructure:"signing_key" json:"signing_key"`
- } `mapstructure:"jwt"`
- }
|