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, error)
- func Run(ctx context.Context, opts ...Option) error
- type Injector
- type Option
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitCaptcha ¶
func InitCaptcha()
func InitCasbin ¶
func InitGormDB ¶
func InitLogger ¶
func InitLogger() (func(), error)
func InitMonitor ¶
Types ¶
type Injector ¶
type Injector struct { Engine *gin.Engine Auth auth.Auther CasbinEnforcer *casbin.SyncedEnforcer MenuSrv *service.MenuSrv }
func BuildInjector ¶
type Option ¶
type Option func(*options)
func SetConfigFile ¶
func SetMenuFile ¶
func SetModelFile ¶
func SetVersion ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.