utils

package
v0.0.0-...-427f7ba Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// for app config
	APP_Address string

	// for db config
	DB_Driver, DB_Connect string

	// for host config
	HOST_Address       string
	HOST_From, HOST_To int
)
View Source
var StdChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")

Functions

func GetAvailablePort

func GetAvailablePort(usedPorts *[]int) (int, error)

func InitConf

func InitConf(confPath string)

func InitDB

func InitDB(driver, connect string) *xorm.Engine

func NewPasswd

func NewPasswd(length int) string

func ServiceURL

func ServiceURL(serviceType, host string, port int, method, password string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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