Documentation ¶
Index ¶
- Variables
- func Init(ctx context.Context, opts ...Option) (func(), error)
- func InitAuth() (auth.Auther, func(), error)
- func InitCaptcha()
- func InitCasbin(adapter persist.Adapter) (*casbin.SyncedEnforcer, func(), error)
- func InitGinEngine(r router.IRouter) *gin.Engine
- func InitGormDB() (*gorm.DB, func(), error)
- func InitHTTPServer(ctx context.Context, handler http.Handler) func()
- func InitLogger() (func(), error)
- func InitMonitor(ctx context.Context) func()
- func NewGormDB() (*gorm.DB, func(), error)
- func Run(ctx context.Context, opts ...Option) error
- type Injector
- type Option
Constants ¶
This section is empty.
Variables ¶
InjectorSet 注入Injector
Functions ¶
func InitCasbin ¶
InitCasbin 初始化casbin
func InitHTTPServer ¶
InitHTTPServer 初始化http服务
Types ¶
type Injector ¶
type Injector struct { Engine *gin.Engine Auth auth.Auther CasbinEnforcer *casbin.SyncedEnforcer MenuBll *bll.Menu }
Injector 注入器(用于初始化完成之后的引用)
func BuildInjector ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.