ioc

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitCasbin

func InitCasbin(db *gorm.DB) *casbin.SyncedEnforcer

func InitEtcdClient

func InitEtcdClient() *clientv3.Client

func InitGinMiddlewares

func InitGinMiddlewares() []gin.HandlerFunc

func InitLdapConfig

func InitLdapConfig() ldapx.Config

func InitMQ

func InitMQ() mq.MQ

func InitMongoDB

func InitMongoDB() *mongox.Mongo

func InitMySQLDB

func InitMySQLDB() *gorm.DB

func InitRedis

func InitRedis() redis.Cmdable

func InitWebServer

func InitWebServer(sp session.Provider, checkPolicyMiddleware *middleware.CheckPolicyMiddlewareBuilder,
	mdls []gin.HandlerFunc, modelHdl *model.Handler, attributeHdl *attribute.Handler,
	resourceHdl *resource.Handler, rmHdl *relation.RMHandler, rrHdl *relation.RRHandler, workerHdl *worker.Handler,
	rtHdl *relation.RTHandler, userHdl *user.Handler, templateHdl *template.Handler, strategyHdl *strategy.Handler,
	codebookHdl *codebook.Handler, runnerHdl *runner.Handler, orderHdl *order.Handler, workflowHdl *workflow.Handler,
	templateGroupHdl *template.GroupHdl, engineHdl *engine.Handler, taskHdl *task.Handler, policyHdl *policy.Handler,
	menuHdl *menu.Handler, endpointHdl *endpoint.Handler, roleHdl *role.Handler, permissionHdl *permission.Handler,
) *gin.Engine

Types

type App

type App struct {
	UserSvc user.Service
	RoleSvc role.Service
}

func InitApp

func InitApp() (*App, error)

Jump to

Keyboard shortcuts

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