config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MulanPSL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityEs

type EntityEs struct {
	Addr       string `yaml:"addr"`
	User       string `yaml:"user"`
	Password   string `yaml:"password"`
	MaxIdleCnt int    `yaml:"max_idle"`
}

type EntityMongo

type EntityMongo struct {
	Addr     string `yaml:"addr"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
	DSN      string `yaml:"dsn"`
}

type EntityMysql

type EntityMysql struct {
	MySqlConnect `yaml:",inline"`
	MaxOpen      int            `yaml:"max_open"`
	MaxIdle      int            `yaml:"max_idle"`
	Slave        []MySqlConnect `yaml:"slave"`
}

type EntityRedis

type EntityRedis struct {
	RedisConnect `yaml:",inline"`
	PoolSize     int `yaml:"poolsize"`
}

type MySqlConnect

type MySqlConnect struct {
	Addr     string `yaml:"addr"`
	UserName string `yaml:"user"`
	Password string `yaml:"password"`
	Database string `yaml:"db"`
	Charset  string `yaml:"charset"`
}

type RedisConnect

type RedisConnect struct {
	Addr string `yaml:"addr"`
	Pwd  string `yaml:"password"`
	DB   int    `yaml:"db"`
}

Jump to

Keyboard shortcuts

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