Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GlobalServerConfig ServerConfig GlobalNacosConfig NacosConfig )
Functions ¶
This section is empty.
Types ¶
type MerchantSrvConfig ¶
type MerchantSrvConfig struct {
Name string `mapstructure:"name" json:"name"`
}
type MongoConfig ¶
type NacosConfig ¶
type OperateSrvConfig ¶
type OperateSrvConfig struct {
Name string `mapstructure:"name" json:"name"`
}
type OtelConfig ¶
type OtelConfig struct {
EndPoint string `mapstructure:"endpoint" json:"endpoint"`
}
type RedisConfig ¶
type ServerConfig ¶
type ServerConfig struct { Name string `mapstructure:"name" json:"name"` Host string `mapstructure:"host" json:"host"` OtelInfo OtelConfig `mapstructure:"otel" json:"otel"` MongoInfo MongoConfig `mapstructure:"mongo" json:"mongo"` NsqInfo NsqConfig `mapstructure:"nsq" json:"nsq"` RedisInfo RedisConfig `mapstructure:"redis" json:"redis"` MerchantSrvInfo MerchantSrvConfig `mapstructure:"merchant_srv" json:"merchant_srv"` OperateSrvInfo OperateSrvConfig `mapstructure:"operate_srv" json:"operate_srv"` }
func (ServerConfig) GetMongoAuth ¶
func (c ServerConfig) GetMongoAuth() options.Credential
func (ServerConfig) GetMongoOptions ¶
func (c ServerConfig) GetMongoOptions() (*options.ClientOptions, string)
func (ServerConfig) GetRedisOption ¶
func (c ServerConfig) GetRedisOption() *redis.Options
Click to show internal directories.
Click to hide internal directories.