Documentation ¶
Index ¶
- func NewHttpProxy(ip string, port int) *httplib.HttpProxy
- func NewHttpServer() *httplib.HTTPServer
- func NewLog(savePath string, saveTimeout time.Duration, logFieSize float32) *logs.Logger
- func NewMysql(dbAddress string) (*gorm.DB, error)
- func SetProcessName(name string)
- func UnmarshalConfig(configFile string, config interface{}) error
- type ObjectResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpServer ¶
func NewHttpServer() *httplib.HTTPServer
func NewLog ¶
savePath 文件保存路径 默认 ./logs/ saveTimeout 文件保存时间 默认为0无限制 maxFileSize 单个文件存储大小 单位 MB 默认 10MB
func UnmarshalConfig ¶
反序列化配置文件 文件格式为toml
Types ¶
type ObjectResult ¶
type ObjectResult struct { Count int64 Datas interface{} }
Click to show internal directories.
Click to hide internal directories.