taskyapi

package
v0.0.0-...-40fc73c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

type TaskCreateRequest struct {
	Tags  []string `json:"tags"`
	Title string   `json:"title"`
}

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)}

type User

type User struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

User struct for user resource

type UserSelfResponse

type UserSelfResponse User

UserSelfResponse struct for user GET: /me

Jump to

Keyboard shortcuts

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