Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GlobalServerConfig ServerConfig GlobalNacosConfig NacosConfig )
Functions ¶
This section is empty.
Types ¶
type EmailConfig ¶
type MongoConfig ¶
type MysqlConfig ¶
type NacosConfig ¶
type OtelConfig ¶
type OtelConfig struct {
EndPoint string `mapstructure:"endpoint" json:"endpoint"`
}
type RPCSrvConfig ¶
type RPCSrvConfig struct {
Name string `mapstructure:"name" json:"name"`
}
type RedisConfig ¶
type ServerConfig ¶
type ServerConfig struct { Name string `mapstructure:"name" json:"name"` Host string `mapstructure:"host" json:"host"` JWTInfo JWTConfig `mapstructure:"jwt" json:"jwt"` OtelInfo OtelConfig `mapstructure:"otel" json:"otel"` MysqlInfo MysqlConfig `mapstructure:"mysql" json:"mysql"` MongoInfo MongoConfig `mapstructure:"mongo" json:"mongo"` NsqInfo NsqConfig `mapstructure:"nsq" json:"nsq"` RedisInfo RedisConfig `mapstructure:"redis" json:"redis"` EmailInfo EmailConfig `mapstructure:"email" json:"email"` }
func (ServerConfig) GetMongoAuth ¶
func (c ServerConfig) GetMongoAuth() options.Credential
func (ServerConfig) GetMongoOptions ¶
func (c ServerConfig) GetMongoOptions() (*options.ClientOptions, string)
func (ServerConfig) GetMysqlDsn ¶
func (c ServerConfig) GetMysqlDsn() string
func (ServerConfig) GetRedisOption ¶
func (c ServerConfig) GetRedisOption() *redis.Options
Click to show internal directories.
Click to hide internal directories.