mgo

package module
v0.0.0-...-fea5f46 Latest Latest
Warning

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

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

README

mgo

golang libs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpProxy

func NewHttpProxy(ip string, port int) *httplib.HttpProxy

func NewHttpServer

func NewHttpServer() *httplib.HTTPServer

func NewLog

func NewLog(savePath string, saveTimeout time.Duration, logFieSize float32) *logs.Logger

savePath 文件保存路径 默认 ./logs/ saveTimeout 文件保存时间 默认为0无限制 maxFileSize 单个文件存储大小 单位 MB 默认 10MB

func NewMysql

func NewMysql(dbAddress string) (*gorm.DB, error)

NewMysql NewMysql

func SetProcessName

func SetProcessName(name string)

set process name

func UnmarshalConfig

func UnmarshalConfig(configFile string, config interface{}) error

反序列化配置文件 文件格式为toml

Types

type ObjectResult

type ObjectResult struct {
	Count int64
	Datas interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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