Documentation
¶
Index ¶
Constants ¶
View Source
const (
DbType = "mysql"
)
Variables ¶
View Source
var ( ErrNilSshClient = errors.New("ssh client is nil") ErrUnsupportedDBType = errors.New("db type is not supported") ErrNilDB = errors.New("db is nil") )
View Source
var ( ErrLoginFailed = xgin.StatusErr(errors.New("login failed"), http.StatusUnauthorized) ErrDBOpenFailed = func(err error) xgin.ResultErr { return xgin.CodeErr(3001, err) } ErrDBInitTablesFailed = func(err error) xgin.ResultErr { return xgin.CodeErr(3002, err) } ErrRandomUuid = func(err error) xgin.ResultErr { return xgin.CodeErr(3003, err) } )
View Source
var ( Port = 10088 DbIp = "" DbPort = "" LogFile = "/var/log/edance.log" )
Functions ¶
func InitGlobal ¶
func InitGlobal()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.