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 AddTask
- type AddTaskService
- type ErrResponse
- type ListTask
- type ListTaskService
- type Login
- type LoginService
- type RegisterUser
- type RegisterUserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondJSON ¶
Types ¶
type AddTask ¶
type AddTask struct { Service AddTaskService Validator *validator.Validate }
type AddTaskService ¶
type ErrResponse ¶
type ListTask ¶
type ListTask struct {
Service ListTaskService
}
type ListTaskService ¶
type Login ¶
type Login struct { Service LoginService Validator *validator.Validate }
type LoginService ¶
type RegisterUser ¶
type RegisterUser struct { Service RegisterUserService Validator *validator.Validate }
func (*RegisterUser) ServeHTTP ¶
func (ru *RegisterUser) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.