module

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 ModuleRouter interface {
	Init(configRouter *mux.Router)
}

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)

Jump to

Keyboard shortcuts

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