sysinit

package
v0.0.0-...-f9427d0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GCF *config.Config //global config
View Source
var MongoSession *mgo.Session
View Source
var MysqlSession *gorm.DB

mysql 连接(已经配置了连接池)

Functions

func InitConf

func InitConf()

func InitCron

func InitCron()

func InitLogger

func InitLogger()

func InitMongo

func InitMongo()

func InitMysql

func InitMysql()

mysql 初始化

func TimeEncoder

func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

自定义日期样式

Types

type PrintTime

type PrintTime struct {
}

打印时间任务

func (PrintTime) Run

func (p PrintTime) Run()

Jump to

Keyboard shortcuts

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