app

package
v0.0.0-...-28a21d3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InjectorSet = wire.NewSet(wire.Struct(new(Injector), "*"))

InjectorSet 注入Injector

Functions

func Init

func Init(ctx context.Context) (func(), error)

func InitGinEngine

func InitGinEngine(r router.IRouter) *gin.Engine

func InitGormDB

func InitGormDB() *gorm.DB

func InitHTTPServer

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

InitHTTPServer 初始化http服务

func InitLogger

func InitLogger()

func InitMonitor

func InitMonitor(ctx context.Context) func()

InitMonitor 初始化服务监控

func Run

func Run(ctx context.Context) error

Run 运行服务

Types

type Injector

type Injector struct {
	Engine *gin.Engine
}

Injector 注入器(用于初始化完成之后的引用)

func BuildInjector

func BuildInjector() *Injector

BuildInjector 生成注入器

Directories

Path Synopsis
schema

Jump to

Keyboard shortcuts

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