initialize

package
v0.0.0-...-3c59bae Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB() (*gorm.DB, func(), error)

InitDB 初始化MySQL连接

func InitHTTPServer

func InitHTTPServer(ctx context.Context, handler http.Handler) func()

InitHTTPServer 初始化HTTP服务

func InitLogger

func InitLogger() *logger.Logger

InitLogger 初始化logger

func InitRedis

func InitRedis() (*redis.ClusterClient, func(), error)

InitRedis 初始化redis

func InitRouter

func InitRouter(router *handler.Router) *gin.Engine

InitRouter 初始化路由

Types

This section is empty.

Jump to

Keyboard shortcuts

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