conf

package
v0.0.0-...-121d9cc Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConf

type DBConf struct {
	DataSource string
	DBName     string
	UserName   string
	Password   string
	Host       string
	Port       int

	MaxIdleConns    int
	MaxOpenConns    int
	ConnMaxLifeTime int64
}

DBConf db 配置

type NodeConf

type NodeConf struct {
	DataSource string
	DBName     string
	UserName   string
	Password   string
	Host       string
	Port       int

	MaxIdleConns    int
	MaxOpenConns    int
	ConnMaxLifeTime int64

	Slaves map[string]*DBConf
}

NodeConf 数据库节点配置

func GetDBConf

func GetDBConf(path string, key string) *NodeConf

GetDBConf

Jump to

Keyboard shortcuts

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