Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EsConfig ¶
type EtcdConfig ¶
func (EtcdConfig) Address ¶
func (e EtcdConfig) Address() string
type KafkaConfig ¶
func (*KafkaConfig) Scan ¶
func (s *KafkaConfig) Scan(src interface{}) (err error)
type LogC ¶
type LogC struct { Filename string `mapstructure:"filename"` // 日志文件名 MaxSize int `mapstructure:"max_size"` // 日志文件最大大小,以 MB 为单位 MaxBackups int `mapstructure:"max_backups"` // 保留日志文件数量 MaxAge int `mapstructure:"max_age"` // 日志文件最大保留天数 Compress bool `mapstructure:"compress"` // 是否压缩 LevelRange string `mapstructure:"level_range"` // 日志级别,[info,error) }
type MongoConfig ¶
type MongoConfig struct { Uri string `mapstructure:"uri"` Database string `mapstructure:"database"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` Option *MongoOption }
func (*MongoConfig) Scan ¶
func (s *MongoConfig) Scan(src interface{}) (err error)
type MongoOption ¶
type PGConfig ¶
type RabbitMqConfig ¶
type RabbitMqConfig struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` }
func (RabbitMqConfig) Dns ¶
func (r RabbitMqConfig) Dns() string
type RedisConfig ¶
type ServerConfig ¶
func (ServerConfig) Address ¶
func (s ServerConfig) Address() string
Click to show internal directories.
Click to hide internal directories.