utils

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SC        = securecookie.New(hashKey, blockKey)
	ASYUSERID = "asy-user-id"
	ASYTOKEN  = "asy-token"
)

Functions

func BuildSqlArgs

func BuildSqlArgs(args ...interface{}) ([]interface{}, error)

func GetConsulUrls

func GetConsulUrls() []string

func GetMd5String

func GetMd5String(s string) string

func InitDb

func InitDb() *gorp.DbMap

func InitLog

func InitLog()

func InitRedisPool

func InitRedisPool() *redis.Pool

func Random62String

func Random62String(size int) string

func WriteErrorLog

func WriteErrorLog(path string, err error) bool

Types

type Address

type Address struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

Jump to

Keyboard shortcuts

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