model

package
v0.0.0-...-17b6e18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Error represents an HTTP error status

type ToDo

type ToDo struct {
	ToDoInput
	ID  *uuid.UUID `json:"id,omitempty"`
	URL string     `json:"url" format:"uuid"`
}

ToDo is a structure that models todo information

type ToDoInput

type ToDoInput struct {
	Title     string `json:"title" binding:"required"`
	Order     int    `json:"order"`
	Completed bool   `json:"completed"`
}

ToDoInput is a structure that models todo information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL