src

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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数据库

Types

type CloseHandle

type CloseHandle func()

CloseHandle 关闭服务

func Init

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

Init 初始化所有服务

Directories

Path Synopsis
service
web
ctl

Jump to

Keyboard shortcuts

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