Documentation ¶
Index ¶
Constants ¶
View Source
const ( MYSQL = "mysql" POSTGRES = "postgres" SQLite = "sqlite3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApolloConfig ¶
type ApolloConfig struct { Addr string AppId string `json:"appId"` Cluster string `json:"cluster"` IP string `json:"ip"` InitConfig apollo.SpecialConfig NameSpace []string InitNameSpace string }
func (*ApolloConfig) Generate ¶
func (conf *ApolloConfig) Generate() interface{}
type BadgerDBConfig ¶
type BadgerDBConfig struct {
Path string
}
func (*BadgerDBConfig) Generate ¶
func (conf *BadgerDBConfig) Generate() interface{}
type CacheConfig ¶
type CacheConfig struct { NumCounters int64 MaxCost int64 BufferItems int64 Metrics bool IgnoreInternalCost bool }
func (*CacheConfig) Generate ¶
func (conf *CacheConfig) Generate() interface{}
type DatabaseConfig ¶
type DatabaseConfig struct {
Type, Charset, Database string
Host, User, Password string
TimeFormat string
MaxIdleConns, MaxOpenConns int
Port int32
//bug 字段gorm toml不生效
Gorm gormi.GORMConfig
Prometheus bool
}
func (*DatabaseConfig) Generate ¶
func (conf *DatabaseConfig) Generate() interface{}
type ElasticConfig ¶
func (*ElasticConfig) Generate ¶
func (conf *ElasticConfig) Generate() interface{}
type EtcdConfig ¶
func (*EtcdConfig) Generate ¶
func (conf *EtcdConfig) Generate() interface{}
type KafkaConsumerConfig ¶
func (*KafkaConsumerConfig) Generate ¶
func (conf *KafkaConsumerConfig) Generate() interface{}
type KafkaProducerConfig ¶
func (*KafkaProducerConfig) Generate ¶
func (conf *KafkaProducerConfig) Generate() interface{}
type MailConfig ¶
func (*MailConfig) Generate ¶
func (conf *MailConfig) Generate() interface{}
type NsqConsumerConfig ¶
type NsqConsumerConfig struct { Addr string Model int8 //0生产者,1消费者,2所有 Topic string Channel string }
func (*NsqConsumerConfig) Generate ¶
func (conf *NsqConsumerConfig) Generate() interface{}
type NsqProducerConfig ¶
func (*NsqProducerConfig) Generate ¶
func (conf *NsqProducerConfig) Generate() interface{}
type PebbleDBConfig ¶
type PebbleDBConfig struct {
DirName string
}
func (*PebbleDBConfig) Generate ¶
func (conf *PebbleDBConfig) Generate() interface{}
Click to show internal directories.
Click to hide internal directories.