config

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

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 CosConfig

type CosConfig struct {
	AppId     string `mapstructure:"appid"`
	Bucket    string `mapstructure:"bucket"`
	Domain    string `mapstructure:"domain"`
	Region    string `mapstructure:"region"`
	SecretId  string `mapstructure:"secret_id"`
	SecretKey string `mapstructure:"secret_key"`
}

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

type WeiXinMcpConfig struct {
	AppId  string `mapstructure:"appid"`
	Secret string `mapstructure:"secret"`
	Token  string `mapstructure:"token"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL