Documentation ¶
Index ¶
- type Handler
- func (h *Handler) CheckPrivileges(route string, next http.HandlerFunc) http.HandlerFunc
- func (h *Handler) CheckTicket(next http.HandlerFunc) http.HandlerFunc
- func (h *Handler) Signin(response http.ResponseWriter, request *http.Request)
- func (h *Handler) Signup(response http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CheckPrivileges ¶
func (h *Handler) CheckPrivileges(route string, next http.HandlerFunc) http.HandlerFunc
CheckPrivileges of user
func (*Handler) CheckTicket ¶
func (h *Handler) CheckTicket(next http.HandlerFunc) http.HandlerFunc
CheckTicket to download for user
func (*Handler) Signin ¶
func (h *Handler) Signin(response http.ResponseWriter, request *http.Request)
Signin Signin godoc @Summary Signin @Description Signin @Tags Users @Param Body body repo.Resource true "Email and password" @Accept json @Produce json @Success 200 {object} string @Failure 400 @Failure 422 @Failure 500 @Router /signin [post]
func (*Handler) Signup ¶
func (h *Handler) Signup(response http.ResponseWriter, request *http.Request)
Signup Signup godoc @Summary Signup @Description Signup @Tags Users @Param Body body repo.Resource true "Email and password" @Accept json @Produce json @Success 201 @Failure 400 @Failure 422 @Failure 500 @Router /signup [post]