ioc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitCasbin added in v1.3.0

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

func InitEtcdClient

func InitEtcdClient() *clientv3.Client

func InitFeishu added in v1.6.0

func InitFeishu() *lark.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 InitSession

func InitSession(cmd redis.Cmdable) session.Provider

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,
	departmentHdl *department.Handler,
) *gin.Engine

func InitWorkWx

func InitWorkWx() *workwx.WorkwxApp

Types

type App

type App struct {
	Web   *gin.Engine
	Event *easyflow.ProcessEvent
	Jobs  []*ecron.Component
	Svc   endpoint.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