Documentation ¶
Index ¶
- func NewUserHandler(m *mux.Router, private *mux.Router, us user.Usecase, ...)
- type ResponseError
- type UserHandler
- func (h *UserHandler) HandleDownloadAvatar(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) HandleEditPassword(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) HandleEditProfile(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) HandleGetAvatar(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) HandleRoles(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) HandleSetUserType(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) HandleShowProfile(w http.ResponseWriter, r *http.Request)
- func (h *UserHandler) HandleUploadAvatar(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserHandler ¶
Types ¶
type ResponseError ¶
type ResponseError struct {
Message string `json:"message"`
}
type UserHandler ¶
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)
Click to show internal directories.
Click to hide internal directories.