userHttp

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserHandler

func NewUserHandler(m *mux.Router, private *mux.Router, us user.Usecase, sanitizer *bluemonday.Policy,
	logger *zap.SugaredLogger, sessionStore sessions.Store)

Types

type ResponseError

type ResponseError struct {
	Message string `json:"message"`
}

type UserHandler

type UserHandler struct {
	UserUsecase user.Usecase
	// contains filtered or unexported fields
}

func (*UserHandler) HandleDownloadAvatar

func (h *UserHandler) HandleDownloadAvatar(w http.ResponseWriter, r *http.Request)

func (*UserHandler) HandleEditPassword

func (h *UserHandler) HandleEditPassword(w http.ResponseWriter, r *http.Request)

func (*UserHandler) HandleEditProfile

func (h *UserHandler) HandleEditProfile(w http.ResponseWriter, r *http.Request)

func (*UserHandler) HandleGetAvatar

func (h *UserHandler) HandleGetAvatar(w http.ResponseWriter, r *http.Request)

func (*UserHandler) HandleRoles

func (h *UserHandler) HandleRoles(w http.ResponseWriter, r *http.Request)

func (*UserHandler) HandleSetUserType

func (h *UserHandler) HandleSetUserType(w http.ResponseWriter, r *http.Request)

func (*UserHandler) HandleShowProfile

func (h *UserHandler) HandleShowProfile(w http.ResponseWriter, r *http.Request)

func (*UserHandler) HandleUploadAvatar

func (h *UserHandler) HandleUploadAvatar(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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