Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GlobalServerConfig ServerConfig GlobalConsulConfig ConsulConfig )
Functions ¶
This section is empty.
Types ¶
type ConsulConfig ¶ added in v0.2.0
type MinioConfig ¶ added in v0.2.0
type MysqlConfig ¶
type MysqlConfig struct { Host string `mapstructure:"host" json:"host"` Port int `mapstructure:"port" json:"port"` Name string `mapstructure:"db" json:"db"` User string `mapstructure:"user" json:"user"` Password string `mapstructure:"password" json:"password"` Salt string `mapstructure:"salt" json:"salt"` }
type OtelConfig ¶
type OtelConfig struct {
EndPoint string `mapstructure:"endpoint" json:"endpoint"`
}
type RedisConfig ¶ added in v0.2.0
type ServerConfig ¶
type ServerConfig struct { Name string `mapstructure:"name" json:"name"` Host string `mapstructure:"host" json:"host"` MysqlInfo MysqlConfig `mapstructure:"mysql" json:"mysql"` RedisInfo RedisConfig `mapstructure:"redis" json:"redis"` OtelInfo OtelConfig `mapstructure:"otel" json:"otel"` MinioInfo MinioConfig `mapstructure:"minio" json:"minio"` }
Click to show internal directories.
Click to hide internal directories.