common

package
v0.0.0-...-a3dc05e Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GDBConn *sql.DB

GDBConn mysql conn holder

View Source
var NameServerAddressList *singlylinkedlist.List

NameServerAddressList name server address from flag args

View Source
var RegisterRequestConfig *namesrv.RegisterRequest

RegisterRequestConfig name server register config

Functions

func CloseConn

func CloseConn()

CloseConn close database conn

func InitDBConn

func InitDBConn() error

InitDBConn just init open db

func ParseCmdAndInitConfig

func ParseCmdAndInitConfig() error

ParseCmdAndInitConfig read config file path from cmd and read config from file

Types

type MySQLConfig

type MySQLConfig struct {
	DBUrl        string
	MaxIdleConns int
	MaxOpenConns int
}

MySQLConfig struct of mysql config

var GMySQLConfig *MySQLConfig

GMySQLConfig mysql sql config holder

Jump to

Keyboard shortcuts

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