Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmqpConfig ¶
type AmqpConfig struct { Host string `mapstructure:"host"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` Prefix string `mapstructure:"prefix"` }
var Amqp *AmqpConfig
type MySqlConfig ¶
type MySqlConfig struct { Host string `mapstructure:"host"` Config string `mapstructure:"config"` DbName string `mapstructure:"dbname"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` MaxIdleConns int `mapstructure:"max_idle_conns"` MaxOpenConns int `mapstructure:"max_open_conns"` LogMode bool `mapstructure:"log_mode"` LogZap string `mapstructure:"log_zap"` }
type MySqlConfigs ¶
type MySqlConfigs map[string]MySqlConfig
type RedisConfig ¶
type RedisConfig struct { DB int `mapstructure:"db"` Host string `mapstructure:"host"` Password string `mapstructure:"password"` Prefix string `mapstructure:"prefix"` }
var Redis *RedisConfig
type ServerConfig ¶
type ServerConfig struct { Debug bool `mapstructure:"debug"` Host string `mapstructure:"host"` Secret string `mapstructure:"secret"` Timezone int `mapstructure:"timezone"` FileStorage string `mapstructure:"file_storage"` FileDomain string `mapstructure:"file_domain"` DefaultRouterText string `mapstructure:"default_router_text"` }
var Server *ServerConfig
type SnowflakeConfig ¶
type SnowflakeConfig struct {
Node uint16 `mapstructure:"node"`
}
type WeiXinMcpConfig ¶
Click to show internal directories.
Click to hide internal directories.