Documentation ¶
Index ¶
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 NewAuthHandler ¶
func NewAuthHandler( postgresRead relational.InterfaceRead, postgresWrite relational.InterfaceWrite, appConfig *app.Config) *Handler
func (*Handler) AuthByType ¶
func (h *Handler) AuthByType(w netHTTP.ResponseWriter, r *netHTTP.Request)
@Tags Auth @Description authenticate login by type! @ID authenticate login @Accept json @Produce json @Param Credentials body auth.Credentials true "auth info" @Success 200 {object} http.Response{content=string} "STATUS OK" @Failure 400 {object} http.Response{content=string} "BAD REQUEST" @Failure 500 {object} http.Response{content=string} "INTERNAL SERVER ERROR" @Router /api/auth/authenticate [post]
Click to show internal directories.
Click to hide internal directories.