Help us shape the future of Go! Take the 2026 Go Developer Survey

module

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 15 Imported by: 2

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)
	GetModuleConfig(w http.ResponseWriter, r *http.Request)
	HandleModuleAction(w http.ResponseWriter, r *http.Request)
	EnableModule(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) EnableModule added in v0.6.18

func (impl ModuleRestHandlerImpl) EnableModule(w http.ResponseWriter, r *http.Request)

func (ModuleRestHandlerImpl) GetModuleConfig added in v0.6.0

func (impl ModuleRestHandlerImpl) GetModuleConfig(w http.ResponseWriter, r *http.Request)

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