Documentation
¶
Index ¶
- func NewRequest(endpoint, token string) *request
- type Client
- func (c *Client) ArchiveProject(id int64) (*model.Project, error)
- func (c *Client) ArchiveTask(id int64) (*model.Task, error)
- func (c *Client) CloseTask(id int64) (*model.Task, error)
- func (c *Client) CreateLabel(r *model.LabelCreationRequest) (*model.Label, error)
- func (c *Client) CreateProject(r *model.ProjectCreationRequest) (*model.Project, error)
- func (c *Client) CreateTask(r *model.TaskCreationRequest) (*model.Task, error)
- func (c *Client) DeleteLabel(id int64) (*model.Label, error)
- func (c *Client) DeleteProject(id int64) (*model.Project, error)
- func (c *Client) DeleteTask(id int64) (*model.Task, error)
- func (c *Client) GetLabel(id int64) *model.Label
- func (c *Client) GetLabels() []*model.Label
- func (c *Client) GetProject(id int64) *model.Project
- func (c *Client) GetProjects() []*model.Project
- func (c *Client) GetTask(id int64) *model.Task
- func (c *Client) GetTasks() TaskSlice
- func (c *Client) MoveProject(r *ProjectMoveRequestWithID) (*model.Project, error)
- func (c *Client) MoveTask(r *TaskMoveRequestWithID) (*model.Task, error)
- func (c *Client) OpenTask(id int64) (*model.Task, error)
- func (c *Client) Sync() error
- func (c *Client) UnarchiveProject(id int64) (*model.Project, error)
- func (c *Client) UnarchiveTask(id int64) (*model.Task, error)
- func (c *Client) UpdateLabel(r *model.LabelUpdateRequestWithID) (*model.Label, error)
- func (c *Client) UpdateProject(r *ProjectUpdateRequestWithID) (*model.Project, error)
- func (c *Client) UpdateTask(r *TaskUpdateRequestWithID) (*model.Task, error)
- type LabelSlice
- type ProjectMoveRequestWithID
- type ProjectSlice
- func (ps ProjectSlice) FilterByIDs(ids []int64) ProjectSlice
- func (ps ProjectSlice) FilterByName(pattern string) ProjectSlice
- func (ps ProjectSlice) GetIDByIndex(idx int) (int64, error)
- func (ps ProjectSlice) GetIDs() []int64
- func (ps ProjectSlice) GetIDsByIndexs(idxs []int) ([]int64, error)
- func (ps ProjectSlice) GetProjectByIndex(idx int) (*model.Project, error)
- func (ps ProjectSlice) SortByID() ProjectSlice
- func (ps ProjectSlice) SortByName() ProjectSlice
- func (ps ProjectSlice) SortByPosition() ProjectSlice
- type ProjectUpdateRequestWithID
- type ResourceSlice
- type ResourceStatus
- type TaskMoveRequestWithID
- type TaskSlice
- func (ts TaskSlice) FilterByGreaterPriority(priority model.Priority) TaskSlice
- func (ts TaskSlice) FilterByIDs(ids []int64) TaskSlice
- func (ts TaskSlice) FilterByLessPriority(priority model.Priority) TaskSlice
- func (ts TaskSlice) FilterByName(pattern *string) TaskSlice
- func (ts TaskSlice) FilterByPriority(priority model.Priority) TaskSlice
- func (ts TaskSlice) FilterByProjectID(projectID int64) TaskSlice
- func (ts TaskSlice) GetIDByIndex(idx int) (int64, error)
- func (ts TaskSlice) GetIDs() []int64
- func (ts TaskSlice) GetIDsByIndexs(idxs []int) ([]int64, error)
- func (ts TaskSlice) GetProgress()
- func (ts TaskSlice) GetTaskByIndex(idx int) (*model.Task, error)
- func (ts TaskSlice) SortByID() TaskSlice
- func (ts TaskSlice) SortByName() TaskSlice
- func (ts TaskSlice) SortByPosition() TaskSlice
- type TaskUpdateRequestWithID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
func NewRequest(endpoint, token string) *request
Types ¶
type Client ¶
func (*Client) CreateLabel ¶
func (*Client) CreateProject ¶
func (*Client) CreateTask ¶
func (*Client) GetProjects ¶
func (*Client) MoveProject ¶
func (c *Client) MoveProject(r *ProjectMoveRequestWithID) (*model.Project, error)
func (*Client) UnarchiveProject ¶
func (*Client) UpdateLabel ¶
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(r *ProjectUpdateRequestWithID) (*model.Project, error)
func (*Client) UpdateTask ¶
func (c *Client) UpdateTask(r *TaskUpdateRequestWithID) (*model.Task, error)
type LabelSlice ¶
func (LabelSlice) SortByID ¶
func (ls LabelSlice) SortByID() LabelSlice
func (LabelSlice) SortByName ¶
func (ls LabelSlice) SortByName() LabelSlice
type ProjectSlice ¶
func (ProjectSlice) FilterByIDs ¶
func (ps ProjectSlice) FilterByIDs(ids []int64) ProjectSlice
func (ProjectSlice) FilterByName ¶
func (ps ProjectSlice) FilterByName(pattern string) ProjectSlice
func (ProjectSlice) GetIDByIndex ¶
func (ps ProjectSlice) GetIDByIndex(idx int) (int64, error)
func (ProjectSlice) GetIDs ¶
func (ps ProjectSlice) GetIDs() []int64
func (ProjectSlice) GetIDsByIndexs ¶
func (ps ProjectSlice) GetIDsByIndexs(idxs []int) ([]int64, error)
func (ProjectSlice) GetProjectByIndex ¶
func (ps ProjectSlice) GetProjectByIndex(idx int) (*model.Project, error)
func (ProjectSlice) SortByID ¶
func (ps ProjectSlice) SortByID() ProjectSlice
func (ProjectSlice) SortByName ¶
func (ps ProjectSlice) SortByName() ProjectSlice
func (ProjectSlice) SortByPosition ¶
func (ps ProjectSlice) SortByPosition() ProjectSlice
type ProjectUpdateRequestWithID ¶
type ProjectUpdateRequestWithID struct {
ID int64 `json:"id"`
model.ProjectUpdateRequest
}
type ResourceSlice ¶
type ResourceStatus ¶
type ResourceStatus int
const ( None ResourceStatus = iota Add Change Delete )
type TaskMoveRequestWithID ¶
type TaskMoveRequestWithID struct {
ID int64 `json:"id"`
model.TaskMoveRequest
}
type TaskSlice ¶
func (TaskSlice) FilterByGreaterPriority ¶
func (TaskSlice) FilterByIDs ¶
func (TaskSlice) FilterByLessPriority ¶
func (TaskSlice) FilterByName ¶
func (TaskSlice) FilterByPriority ¶
func (TaskSlice) FilterByProjectID ¶
func (TaskSlice) GetProgress ¶
func (ts TaskSlice) GetProgress()
func (TaskSlice) SortByName ¶
func (TaskSlice) SortByPosition ¶
type TaskUpdateRequestWithID ¶
type TaskUpdateRequestWithID struct {
ID int64 `json:"id"`
model.TaskUpdateRequest
}
Click to show internal directories.
Click to hide internal directories.