Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTodoNotFound = errors.New("todo with given UUID does not exist")
Functions ¶
func NewRouter ¶
func NewRouter(repository *Repository) *http.ServeMux
func ResponseErrorBytes ¶
Types ¶
type CreateTodoRequest ¶
type CreateTodoRequest struct {
Description string `json:"description" binding:"required"`
}
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository() *Repository
type UpdateTodoRequest ¶
Click to show internal directories.
Click to hide internal directories.