inject_dao

package
v0.0.0-...-1f4ee57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 25 Imported by: 0

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

type ElasticConfig struct {
	Host string
	Port int32
}

func (*ElasticConfig) Generate

func (conf *ElasticConfig) Generate() interface{}

type EtcdConfig

type EtcdConfig clientv3.Config

func (*EtcdConfig) Generate

func (conf *EtcdConfig) Generate() interface{}

type KafkaConsumerConfig

type KafkaConsumerConfig struct {
	Topic    string
	ConsAddr []string
}

func (*KafkaConsumerConfig) Generate

func (conf *KafkaConsumerConfig) Generate() interface{}

type KafkaProducerConfig

type KafkaProducerConfig struct {
	Topic    string
	ProdAddr []string
}

func (*KafkaProducerConfig) Generate

func (conf *KafkaProducerConfig) Generate() interface{}

type MailConfig

type MailConfig struct {
	Host     string
	Port     string
	From     string
	Password string
}

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

type NsqProducerConfig struct {
	Addr    string
	Topic   string
	Channel string
}

func (*NsqProducerConfig) Generate

func (conf *NsqProducerConfig) Generate() interface{}

type PebbleDBConfig

type PebbleDBConfig struct {
	DirName string
}

func (*PebbleDBConfig) Generate

func (conf *PebbleDBConfig) Generate() interface{}

type RedisConfig

type RedisConfig struct {
	Addr        string
	Password    string
	MaxIdle     int
	MaxActive   int
	IdleTimeout time.Duration
	Index       int
}

func (*RedisConfig) Generate

func (conf *RedisConfig) Generate() interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL