edance

package module
v0.0.0-...-5cada86 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

edance

简介

edance服务端

环境变量

EDANCE_PORT:服务运行所使用的端口

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.

Directories

Path Synopsis
cmd
ed-ctl command
edance command
db
module

Jump to

Keyboard shortcuts

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