conf

package
v0.0.0-...-e90b7cb Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MysqlConf  MysqlConfig
	EtcdConf   EtcdConf
	RedisConf  RedisConf
	Vgo_client Vgo_client
}

type EtcdConf

type EtcdConf struct {
	Addr    string
	Timeout int64
}

type MysqlConfig

type MysqlConfig struct {
	UserName string
	Passwd   string
	Host     string
	Port     int
	Database string
}

type RedisConf

type RedisConf struct {
	RedisMaxIdle     int
	RedisMaxActive   int
	RedisIdleTimeout int
	RedisAddr        string
}

type Vgo_client

type Vgo_client struct {
	Etcdcli   *etcd_client.Client
	Vgo_db    *sqlx.DB
	RedisPool *redis.Pool
}

Jump to

Keyboard shortcuts

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