ioc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AdminPermission added in v0.1.0

func AdminPermission() gin.HandlerFunc

func InitCache

func InitCache(cmd redis.Cmdable) ecache.Cache

func InitCosConfig

func InitCosConfig() cos.Config

func InitDB

func InitDB() *egorm.Component

func InitMQ

func InitMQ() mq.MQ

func InitRedis

func InitRedis() redis.Cmdable

func InitSession

func InitSession(cmd redis.Cmdable) session.Provider

func InitUserHandler

func InitUserHandler(db *egorm.Component, ec ecache.Cache, q mq.MQ, memModule *member.Module, perm *permission.Module) *user.Handler

func WaitForDBSetup

func WaitForDBSetup(dsn string)

Types

type AdminServer added in v0.1.0

type AdminServer *egin.Component

func InitAdminServer added in v0.1.0

func InitAdminServer(prj *project.AdminHandler,
	mark *marketing.AdminHandler) AdminServer

type App

type App struct {
	Web   *egin.Component
	Admin AdminServer
	Jobs  []*ecron.Component
}

func InitApp

func InitApp() (*App, error)

Jump to

Keyboard shortcuts

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