Back to godoc.org

Package src

v1.1.0
Latest Go to latest

The highest tagged major version is .

Published: Dec 5, 2018 | License: MIT | Module: github.com/1920853199/gin-admin

Index

func InitInject

func InitInject(db *mysql.DB) (*casbin.Enforcer, *model.Common, *ctl.Common)

InitInject 初始化依赖注入

func InitLogger

func InitLogger(mysqlDB *sql.DB) logger.HookFlusher

InitLogger 初始化日志

func InitMySQL

func InitMySQL() *mysql.DB

InitMySQL 初始化mysql数据库

type CloseHandle

type CloseHandle func()

CloseHandle 关闭服务

func Init

func Init(version, traceID string) (*gin.Engine, CloseHandle)

Init 初始化所有服务

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier