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: 25 modules, 23 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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