app

package
v0.0.0-...-c8dbcfe Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func InitAuth

func InitAuth() (auth.Auther, func(), error)

func InitCasbin

func InitCasbin(adapter persist.Adapter) (*casbin.SyncedEnforcer, func(), error)

func InitGinEngine

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

func InitGormDB

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

func NewGormDB

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

Types

type Injector

type Injector struct {
	Engine         *gin.Engine
	Auth           auth.Auther
	CasbinEnforcer *casbin.SyncedEnforcer
	MenuSrv        *service.MenuSrv
}

func BuildInjector

func BuildInjector() (*Injector, func(), error)

Directories

Path Synopsis
api
dao
module
Code generated by swaggo/swag.
Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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