handle

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAllowDomain = errors.New("不在允许域名列表内")

Functions

This section is empty.

Types

type AdminHandel added in v0.0.3

type AdminHandel struct {
	// contains filtered or unexported fields
}

func NewAdminHandel added in v0.0.3

func NewAdminHandel(handleError *handelerror.HandleError, adminService *service.AdminService, validate *validator.Validate) *AdminHandel

func (*AdminHandel) EditUser added in v0.0.3

func (h *AdminHandel) EditUser() http.HandlerFunc

func (*AdminHandel) ListUser added in v0.0.3

func (h *AdminHandel) ListUser() http.HandlerFunc

func (*AdminHandel) NeedAdmin added in v0.0.3

func (h *AdminHandel) NeedAdmin(handle http.Handler) http.Handler

func (*AdminHandel) NeedAuth added in v0.0.3

func (h *AdminHandel) NeedAuth(handle http.Handler) http.Handler

type Handel

type Handel struct {
	// contains filtered or unexported fields
}

func NewHandel

func NewHandel(webService *service.WebService) *Handel

func (*Handel) GetConfig

func (h *Handel) GetConfig() http.HandlerFunc

type UserHandel added in v0.0.3

type UserHandel struct {
	// contains filtered or unexported fields
}

func NewUserHandel added in v0.0.3

func NewUserHandel(handleError *handelerror.HandleError, validate *validator.Validate,
	userService *service.UserService, logger *slog.Logger, textureService *service.TextureService, config config.Config) *UserHandel

func (*UserHandel) ChangeName added in v0.0.3

func (h *UserHandel) ChangeName() http.HandlerFunc

func (*UserHandel) ChangePasswd added in v0.0.3

func (h *UserHandel) ChangePasswd() http.HandlerFunc

func (*UserHandel) ForgotPassword added in v0.0.3

func (h *UserHandel) ForgotPassword() http.HandlerFunc

func (*UserHandel) Login added in v0.0.3

func (h *UserHandel) Login() http.HandlerFunc

func (*UserHandel) NeedEnableEmail added in v0.0.3

func (h *UserHandel) NeedEnableEmail(handle http.Handler) http.Handler

func (*UserHandel) PutTexture added in v0.0.3

func (h *UserHandel) PutTexture() http.HandlerFunc

func (*UserHandel) Reg added in v0.0.3

func (h *UserHandel) Reg() http.HandlerFunc

func (*UserHandel) SendForgotEmail added in v0.0.3

func (h *UserHandel) SendForgotEmail() http.HandlerFunc

func (*UserHandel) SendRegEmail added in v0.0.3

func (h *UserHandel) SendRegEmail() http.HandlerFunc

func (*UserHandel) UserInfo added in v0.0.3

func (h *UserHandel) UserInfo() http.HandlerFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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