Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseError ¶
type ResponseError struct { HTTPStatus int `json:"-"` Code int `json:"code"` Message string `json:"message"` }
ResponseError represent the reseponse error struct
func (*ResponseError) ToJSON ¶
func (e *ResponseError) ToJSON() string
func (*ResponseError) WriteToResponse ¶
func (e *ResponseError) WriteToResponse(w http.ResponseWriter)
type ResponseMessage ¶
type TodosHandler ¶
type TodosHandler struct {
TService domain.TodosService
}
func NewTodosHandler ¶
func NewTodosHandler(r *httprouter.Router, ts domain.TodosService) *TodosHandler
Click to show internal directories.
Click to hide internal directories.