Documentation ¶
Index ¶
- Constants
- func ByDatetime(a, b Task) int
- func ByPriority(a, b Task) int
- func ByScheduled(t Task) bool
- func Filter[S ~[]E, E Filterable](coll S, f func(v E) bool) (S, S)
- func Sort[S ~[]E, E Sortable](coll S, f func(a, b E) int)
- type Client
- func (c *Client) CloseTask(ctx context.Context, id string) error
- func (c *Client) CreateProject(ctx context.Context, params ProjectParams) (*Project, error)
- func (c *Client) CreateTask(ctx context.Context, params TaskParams) (*Task, error)
- func (c *Client) DeleteProject(ctx context.Context, id string) error
- func (c *Client) DeleteTask(ctx context.Context, id string) error
- func (c *Client) GetProject(ctx context.Context, projectID string) (*Project, error)
- func (c *Client) GetProjects(ctx context.Context) ([]Project, error)
- func (c *Client) GetTasks(ctx context.Context, filter *TaskFilter) ([]Task, error)
- func (c *Client) ReopenTask(ctx context.Context, id string) error
- type Due
- type Duration
- type Error
- type Filterable
- type Project
- type ProjectParams
- type Sortable
- type Task
- type TaskFilter
- type TaskParams
Constants ¶
View Source
const ( ColorBerryRed = "berry_red" ColorBlue = "blue" ColorCharcoal = "charcoal" ColorGrape = "grape" ColorGreen = "green" ColorGrey = "grey" ColorLavender = "lavender" ColorLightBlue = "light_blue" ColorLimeGreen = "lime_green" ColorMagenta = "magenta" ColorMintGreen = "mint_green" ColorOliveGreen = "olive_green" ColorOrange = "orange" ColorRed = "red" ColorSalmon = "salmon" ColorSkyBlue = "sky_blue" ColorTaupe = "taupe" ColorTeal = "teal" ColorViolet = "violet" ColorYellow = "yellow" )
View Source
const ( ViewStyleBoard = "board" ViewStyleList = "list" )
Variables ¶
This section is empty.
Functions ¶
func ByDatetime ¶
func ByPriority ¶
func ByScheduled ¶
func Filter ¶
func Filter[S ~[]E, E Filterable](coll S, f func(v E) bool) (S, S)
Types ¶
type Client ¶
func (*Client) CreateProject ¶
func (*Client) CreateTask ¶
func (*Client) GetProject ¶
type Filterable ¶
type Project ¶
type Project struct { ID string `json:"id"` Name string `json:"name"` Color string `json:"color"` ParentID string `json:"parent_id"` Order int64 `json:"order"` CommentCount int64 `json:"comment_count"` IsFavorite bool `json:"is_favorite"` IsInboxProject bool `json:"is_inbox_project"` IsTeamInbox bool `json:"is_team_inbox"` ViewStyle string `json:"view_style"` URL string `json:"url"` }
type ProjectParams ¶
type Task ¶
type Task struct { CreatorID string `json:"creator_id"` CreatedAt string `json:"created_at"` AssigneeID string `json:"assignee_id"` AssignerID string `json:"assigner_id"` CommentCount int64 `json:"comment_count"` IsCompleted bool `json:"is_completed"` Content string `json:"content"` Description string `json:"description"` Due *Due `json:"due"` Duration *Duration `json:"duration"` ID string `json:"id"` Labels []string `json:"labels"` Order int64 `json:"order"` Priority int64 `json:"priority"` ProjectID string `json:"project_id"` SectionID string `json:"section_id"` ParentID string `json:"parent_id"` URL string `json:"url"` }
type TaskFilter ¶
type TaskFilter struct {
Filter string
}
type TaskParams ¶
type TaskParams struct { Content string `json:"content,omitempty"` Description string `json:"description,omitempty"` ProjectID string `json:"project_id,omitempty"` // Not in update SectionID string `json:"section_id,omitempty"` // Not in update ParentID string `json:"parent_id,omitempty"` // Not in update Order string `json:"order,omitempty"` // Not in update Labels []string `json:"labels,omitempty"` Priority int64 `json:"priority,omitempty"` DueString string `json:"due_string,omitempty"` DueDate string `json:"due_date,omitempty"` DueDatetime string `json:"due_datetime,omitempty"` DueLang string `json:"due_lang,omitempty"` AssigneeID string `json:"assignee_id,omitempty"` Duration int64 `json:"duration,omitempty"` DurationUnit string `json:"duration_unit,omitempty"` }
Click to show internal directories.
Click to hide internal directories.