Documentation ¶
Index ¶
- func AdminMiddleware(next http.Handler) http.Handler
- func AuthMiddleware(j *auth.JWTer) func(next http.Handler) http.Handler
- func RespondJSON(ctx context.Context, w http.ResponseWriter, body any, status int)
- type AddTaskHandler
- type AddTaskService
- type ErrResponse
- type ListTaskHandler
- type ListTasksService
- type LoginHandler
- type LoginService
- type RegisterUserHandler
- type RegisterUserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondJSON ¶
Types ¶
type AddTaskHandler ¶
type AddTaskHandler struct { Service AddTaskService Validator *validator.Validate }
func (*AddTaskHandler) ServeHTTP ¶
func (at *AddTaskHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type AddTaskService ¶
type ErrResponse ¶
type ListTaskHandler ¶
type ListTaskHandler struct {
Service ListTasksService
}
func (*ListTaskHandler) ServeHTTP ¶
func (lt *ListTaskHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ListTasksService ¶
type LoginHandler ¶
type LoginHandler struct { Service LoginService Validator *validator.Validate }
func (*LoginHandler) ServeHTTP ¶
func (l *LoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LoginService ¶
type RegisterUserHandler ¶
type RegisterUserHandler struct { Service RegisterUserService Validator *validator.Validate }
func (*RegisterUserHandler) ServeHTTP ¶
func (ru *RegisterUserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.