Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var M *jsval.ConstraintMap
View Source
var R0 jsval.Constraint
View Source
var R1 jsval.Constraint
View Source
var TaskCreateValidator *jsval.JSVal
View Source
var TaskInstancesValidator *jsval.JSVal
View Source
var TaskSelfValidator *jsval.JSVal
View Source
var UserSelfValidator *jsval.JSVal
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code string `json:"code"` Detail string `json:"detail"` ErrorFields []struct { Message string `json:"message,omitempty"` Name string `json:"name,omitempty"` } `json:"errorFields,omitempty"` }
Error struct for error resource
type Task ¶
type Task struct { CompletedAt time.Time `json:"completedAt"` CreatedAt time.Time `json:"createdAt"` ID string `json:"id"` Spent int64 `json:"spent"` StartedAt time.Time `json:"startedAt"` Status string `json:"status"` Tags []string `json:"tags"` Title string `json:"title"` User *User `json:"user,omitempty"` }
Task struct for task resource
type TaskCreateRequest ¶
TaskCreateRequest struct for task POST: /tasks
type TaskCreateResponse ¶
type TaskCreateResponse Task
TaskCreateResponse struct for task POST: /tasks
type TaskInstancesRequest ¶
type TaskInstancesRequest struct { Limit int64 `json:"limit,omitempty" schema:"limit"` Offset int64 `json:"offset,omitempty" schema:"offset"` }
TaskInstancesRequest struct for task GET: /tasks
type TaskInstancesResponse ¶
type TaskInstancesResponse []Task
TaskInstancesResponse struct for task GET: /tasks
type TaskSelfResponse ¶
type TaskSelfResponse Task
TaskSelfResponse struct for task GET: /tasks/{(#/definitions/task/definitions/identity)}
Click to show internal directories.
Click to hide internal directories.