Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModuleWireSet = wire.NewSet( module.NewModuleActionAuditLogRepositoryImpl, wire.Bind(new(module.ModuleActionAuditLogRepository), new(*module.ModuleActionAuditLogRepositoryImpl)), module.NewModuleRepositoryImpl, wire.Bind(new(module.ModuleRepository), new(*module.ModuleRepositoryImpl)), module.ParseModuleEnvConfig, module.NewModuleServiceImpl, wire.Bind(new(module.ModuleService), new(*module.ModuleServiceImpl)), module.NewModuleCronServiceImpl, wire.Bind(new(module.ModuleCronService), new(*module.ModuleCronServiceImpl)), module.NewModuleCacheServiceImpl, wire.Bind(new(module.ModuleCacheService), new(*module.ModuleCacheServiceImpl)), NewModuleRestHandlerImpl, wire.Bind(new(ModuleRestHandler), new(*ModuleRestHandlerImpl)), NewModuleRouterImpl, wire.Bind(new(ModuleRouter), new(*ModuleRouterImpl)), )
Functions ¶
This section is empty.
Types ¶
type ModuleRestHandler ¶
type ModuleRestHandler interface { GetModuleInfo(w http.ResponseWriter, r *http.Request) HandleModuleAction(w http.ResponseWriter, r *http.Request) }
type ModuleRestHandlerImpl ¶
type ModuleRestHandlerImpl struct {
// contains filtered or unexported fields
}
func NewModuleRestHandlerImpl ¶
func NewModuleRestHandlerImpl(logger *zap.SugaredLogger, moduleService module.ModuleService, userService user.UserService, enforcer casbin.Enforcer, validator *validator.Validate, ) *ModuleRestHandlerImpl
func (ModuleRestHandlerImpl) GetModuleInfo ¶
func (impl ModuleRestHandlerImpl) GetModuleInfo(w http.ResponseWriter, r *http.Request)
func (ModuleRestHandlerImpl) HandleModuleAction ¶
func (impl ModuleRestHandlerImpl) HandleModuleAction(w http.ResponseWriter, r *http.Request)
type ModuleRouter ¶
type ModuleRouterImpl ¶
type ModuleRouterImpl struct {
// contains filtered or unexported fields
}
func NewModuleRouterImpl ¶
func NewModuleRouterImpl(moduleRestHandler ModuleRestHandler) *ModuleRouterImpl
func (ModuleRouterImpl) Init ¶
func (impl ModuleRouterImpl) Init(configRouter *mux.Router)
Click to show internal directories.
Click to hide internal directories.