Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigurationName = "config" DefaultConfigurationType = "yaml" DefaultWorkDirectory = "./etc" )
全局常量定义
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RedisOptions *redis.Options `json:"redisOptions,omitempty" yaml:"redisOptions,omitempty" xml:"redisOptions,omitempty" mapstructure:"redis"` MysqlOptions *mysql.Options `json:"mysqlOptions,omitempty" yaml:"mysqlOptions,omitempty" xml:"mysqlOptions,omitempty" mapstructure:"mysql"` KafkaOptions *kafka.Options `json:"kafkaOptions,omitempty" yaml:"kafkaOptions,omitempty" xml:"kafkaOptions,omitempty" mapstructure:"kafka"` }
Config 全局配置
Click to show internal directories.
Click to hide internal directories.