ioc

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 49 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 InitES added in v0.1.3

func InitES() *elastic.Client

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

type App

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

func InitApp

func InitApp() (*App, error)

Jump to

Keyboard shortcuts

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