Documentation ¶
Index ¶
- func WebhookVerifier(secret string) func(r *http.Request) bool
- type API
- func (a *API) AddCommentToTask(ctx context.Context, newComment *AddCommentToTaskRequest) *AddCommentToTaskResponse
- func (a *API) CreateTask(ctx context.Context, newTask *CreateTaskRequest) *CreateTaskResponse
- func (a *API) FolderByID(ctx context.Context, folderID string) *FolderByIDResponse
- func (a *API) FolderLists(ctx context.Context, folderID string) *FolderListsReponse
- func (a *API) ListByID(ctx context.Context, listID string) *ListByIDResponse
- func (a *API) ListFolders(ctx context.Context, spaceID string) *ListFoldersResponse
- func (a *API) ListMembersOfList(ctx context.Context, listID string) *ListMembersResponse
- func (a *API) ListSpaces(ctx context.Context, teamID string) *ListSpacesResponse
- func (a *API) ListTeams(ctx context.Context) *ListTeamsResponse
- func (a *API) SearchCommentsInTask(ctx context.Context, taskID string, startTaskID string, startTaskTs int64) *ListTeamsResponse
- func (a *API) SearchTasksInTeam(ctx context.Context, req *SearchTasksInTeamRequest) *SearchTasksInTeamResponse
- func (a *API) SpaceByID(ctx context.Context, spaceID string) *SpaceByIDResponse
- func (a *API) SpaceFolderlessLists(ctx context.Context, spaceID string) *SpaceFolderlessListsResponse
- func (a *API) TaskByID(ctx context.Context, taskID string) *TaskByIDResponse
- func (a *API) UpdateTask(ctx context.Context, updTask *UpdateTaskRequest) *UpdateTaskResponse
- type AddCommentToTaskRequest
- type AddCommentToTaskResponse
- func (r AddCommentToTaskResponse) DecodeOK() bool
- func (r AddCommentToTaskResponse) IsStatus(in int) bool
- func (r AddCommentToTaskResponse) NotFound() bool
- func (r *AddCommentToTaskResponse) SetDecodeErr(err error)
- func (r *AddCommentToTaskResponse) SetResponseStatusCode(in int)
- func (r AddCommentToTaskResponse) StatusOK() bool
- type CreateTaskRequest
- type CreateTaskResponse
- type FolderByIDRequest
- type FolderByIDResponse
- type FolderByIDResponse_ListItem
- type FolderListsReponse
- type FolderListsReponse_ListItem
- type FolderListsRequest
- type ListByIDRequest
- type ListByIDResponse
- type ListFoldersRequest
- type ListFoldersResponse
- type ListFoldersResponse_FolderItem
- type ListFoldersResponse_FolderListItem
- type ListMembersRequest
- type ListMembersResponse
- type ListSpacesRequest
- type ListSpacesResponse
- type ListSpacesResponse_SpaceItem
- type ListStatuses
- type ListTeamsRequest
- type ListTeamsResponse
- type Member
- type ResponseMetadata
- type SearchCommentsInTaskRequest
- type SearchCommentsInTaskResponse
- type SearchTasksInTeamRequest
- type SearchTasksInTeamResponse
- func (r SearchTasksInTeamResponse) DecodeOK() bool
- func (r SearchTasksInTeamResponse) IsStatus(in int) bool
- func (r SearchTasksInTeamResponse) NotFound() bool
- func (r *SearchTasksInTeamResponse) SetDecodeErr(err error)
- func (r *SearchTasksInTeamResponse) SetResponseStatusCode(in int)
- func (r SearchTasksInTeamResponse) StatusOK() bool
- type SearchTasksRequest
- type SearchTasksResponse
- type SpaceByIDRequest
- type SpaceByIDResponse
- type SpaceFolderlessListsRequest
- type SpaceFolderlessListsResponse
- func (r SpaceFolderlessListsResponse) DecodeOK() bool
- func (r SpaceFolderlessListsResponse) IsStatus(in int) bool
- func (r SpaceFolderlessListsResponse) NotFound() bool
- func (r *SpaceFolderlessListsResponse) SetDecodeErr(err error)
- func (r *SpaceFolderlessListsResponse) SetResponseStatusCode(in int)
- func (r SpaceFolderlessListsResponse) StatusOK() bool
- type SpaceFolderlessListsResponse_ListItem
- type Status
- type Task
- type TaskByIDRequest
- type TaskByIDResponse
- type TaskMembersRequest
- type TaskMembersResponse
- type TaskMembersResponse_Member
- type UpdateTaskRequest
- type UpdateTaskResponse
- type WebhookMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) AddCommentToTask ¶
func (a *API) AddCommentToTask(ctx context.Context, newComment *AddCommentToTaskRequest) *AddCommentToTaskResponse
func (*API) CreateTask ¶
func (a *API) CreateTask(ctx context.Context, newTask *CreateTaskRequest) *CreateTaskResponse
func (*API) FolderByID ¶
func (a *API) FolderByID(ctx context.Context, folderID string) *FolderByIDResponse
func (*API) FolderLists ¶
func (a *API) FolderLists(ctx context.Context, folderID string) *FolderListsReponse
func (*API) ListFolders ¶
func (a *API) ListFolders(ctx context.Context, spaceID string) *ListFoldersResponse
func (*API) ListMembersOfList ¶
func (a *API) ListMembersOfList(ctx context.Context, listID string) *ListMembersResponse
func (*API) ListSpaces ¶
func (a *API) ListSpaces(ctx context.Context, teamID string) *ListSpacesResponse
func (*API) SearchCommentsInTask ¶
func (*API) SearchTasksInTeam ¶
func (a *API) SearchTasksInTeam(ctx context.Context, req *SearchTasksInTeamRequest) *SearchTasksInTeamResponse
func (*API) SpaceByID ¶
func (a *API) SpaceByID(ctx context.Context, spaceID string) *SpaceByIDResponse
func (*API) SpaceFolderlessLists ¶
func (a *API) SpaceFolderlessLists(ctx context.Context, spaceID string) *SpaceFolderlessListsResponse
func (*API) UpdateTask ¶
func (a *API) UpdateTask(ctx context.Context, updTask *UpdateTaskRequest) *UpdateTaskResponse
type AddCommentToTaskRequest ¶
type AddCommentToTaskResponse ¶
type AddCommentToTaskResponse struct {
// contains filtered or unexported fields
}
func (*AddCommentToTaskResponse) SetDecodeErr ¶
func (r *AddCommentToTaskResponse) SetDecodeErr(err error)
func (*AddCommentToTaskResponse) SetResponseStatusCode ¶
func (r *AddCommentToTaskResponse) SetResponseStatusCode(in int)
type CreateTaskRequest ¶
type CreateTaskResponse ¶
type CreateTaskResponse struct { TaskID string `json:"id"` // contains filtered or unexported fields }
func (*CreateTaskResponse) SetDecodeErr ¶
func (r *CreateTaskResponse) SetDecodeErr(err error)
func (*CreateTaskResponse) SetResponseStatusCode ¶
func (r *CreateTaskResponse) SetResponseStatusCode(in int)
type FolderByIDRequest ¶
type FolderByIDRequest struct {
FolderID string
}
type FolderByIDResponse ¶
type FolderByIDResponse struct { ID string `json:"id"` Name string `json:"name"` OverrideStatuses bool `json:"override_statuses"` Hidden bool `json:"hidden"` Space struct { ID string `json:"id"` Name string `json:"name"` Access bool `json:"access"` } `json:"space"` TaskCount int64 `json:"task_count,string"` Archived bool `json:"archived"` Statuses []ListStatuses `json:"statuses"` Lists []FolderByIDResponse_ListItem `json:"lists"` PermissionLevel string `json:"permission_level"` // contains filtered or unexported fields }
func (*FolderByIDResponse) SetDecodeErr ¶
func (r *FolderByIDResponse) SetDecodeErr(err error)
func (*FolderByIDResponse) SetResponseStatusCode ¶
func (r *FolderByIDResponse) SetResponseStatusCode(in int)
type FolderListsReponse ¶
type FolderListsReponse struct { Lists []FolderListsReponse_ListItem `json:"lists"` // contains filtered or unexported fields }
func (*FolderListsReponse) SetDecodeErr ¶
func (r *FolderListsReponse) SetDecodeErr(err error)
func (*FolderListsReponse) SetResponseStatusCode ¶
func (r *FolderListsReponse) SetResponseStatusCode(in int)
type FolderListsReponse_ListItem ¶
type FolderListsReponse_ListItem struct { ID string `json:"id"` Name string `json:"name"` Folder struct { ID string `json:"id"` Name string `json:"name"` Hidden bool `json:"hidden"` Access bool `json:"access"` } `json:"folder"` Space struct { ID string `json:"id"` Name string `json:"name"` Access bool `json:"access"` } `json:"space"` Archived bool `json:"archived"` }
type FolderListsRequest ¶
type FolderListsRequest struct {
FolderID string
}
type ListByIDRequest ¶
type ListByIDRequest struct {
ListID string
}
type ListByIDResponse ¶
type ListByIDResponse struct { ID string `json:"id"` Name string `json:"name"` Content string `json:"content"` Folder struct { ID string `json:"id"` Name string `json:"name"` Hidden bool `json:"hidden"` Access bool `json:"access"` } `json:"folder"` Space struct { ID string `json:"id"` Name string `json:"name"` Access bool `json:"access"` } `json:"space"` InboundAddress string `json:"inbound_address"` Archived bool `json:"archived"` OverrideStatuses bool `json:"override_statuses"` Statuses []ListStatuses `json:"statuses"` // contains filtered or unexported fields }
func (*ListByIDResponse) SetDecodeErr ¶
func (r *ListByIDResponse) SetDecodeErr(err error)
func (*ListByIDResponse) SetResponseStatusCode ¶
func (r *ListByIDResponse) SetResponseStatusCode(in int)
type ListFoldersRequest ¶
type ListFoldersRequest struct {
SpaceID string
}
type ListFoldersResponse ¶
type ListFoldersResponse struct { Folders []struct { ID string `json:"id"` Name string `json:"name"` Orderindex int `json:"orderindex"` Hidden bool `json:"hidden"` Space struct { ID string `json:"id"` Name string `json:"name"` } `json:"space"` TaskCount string `json:"task_count"` Archived bool `json:"archived"` Statuses []ListStatuses `json:"statuses"` Lists []ListFoldersResponse_FolderListItem `json:"lists"` PermissionLevel string `json:"permission_level"` } `json:"folders"` // contains filtered or unexported fields }
func (*ListFoldersResponse) SetDecodeErr ¶
func (r *ListFoldersResponse) SetDecodeErr(err error)
func (*ListFoldersResponse) SetResponseStatusCode ¶
func (r *ListFoldersResponse) SetResponseStatusCode(in int)
type ListFoldersResponse_FolderItem ¶
type ListFoldersResponse_FolderItem struct { }
type ListFoldersResponse_FolderListItem ¶
type ListFoldersResponse_FolderListItem struct { ID string `json:"id"` Name string `json:"name"` TaskCount int64 `json:"task_count"` Space struct { ID string `json:"id"` Name string `json:"name"` Access bool `json:"access"` } `json:"space"` Archived bool `json:"archived"` Statuses []ListStatuses `json:"statuses"` PermissionLevel string `json:"permission_level"` }
type ListMembersRequest ¶
type ListMembersRequest struct {
ListID string
}
type ListMembersResponse ¶
type ListMembersResponse struct { Members []Member `json:"members"` // contains filtered or unexported fields }
func (*ListMembersResponse) SetDecodeErr ¶
func (r *ListMembersResponse) SetDecodeErr(err error)
func (*ListMembersResponse) SetResponseStatusCode ¶
func (r *ListMembersResponse) SetResponseStatusCode(in int)
type ListSpacesRequest ¶
type ListSpacesRequest struct {
TeamID string
}
type ListSpacesResponse ¶
type ListSpacesResponse struct { Spaces []ListSpacesResponse_SpaceItem `json:"spaces"` // contains filtered or unexported fields }
func (*ListSpacesResponse) SetDecodeErr ¶
func (r *ListSpacesResponse) SetDecodeErr(err error)
func (*ListSpacesResponse) SetResponseStatusCode ¶
func (r *ListSpacesResponse) SetResponseStatusCode(in int)
type ListSpacesResponse_SpaceItem ¶
type ListSpacesResponse_SpaceItem struct { ID string `json:"id"` Name string `json:"name"` Private bool `json:"private"` Statuses []struct { Status string `json:"status"` Type string `json:"type"` Orderindex int `json:"orderindex"` Color string `json:"color"` } `json:"statuses"` MultipleAssignees bool `json:"multiple_assignees"` Features struct { DueDates struct { Enabled bool `json:"enabled"` StartDate bool `json:"start_date"` RemapDueDates bool `json:"remap_due_dates"` RemapClosedDueDate bool `json:"remap_closed_due_date"` } `json:"due_dates"` TimeEstimates struct { Enabled bool `json:"enabled"` } `json:"time_estimates"` } `json:"features"` }
type ListStatuses ¶
type ListStatuses []Status
type ListTeamsRequest ¶
type ListTeamsRequest struct { }
type ListTeamsResponse ¶
type ListTeamsResponse struct { Teams []struct { ID string `json:"id"` Name string `json:"name"` } `json:"teams"` // contains filtered or unexported fields }
func (*ListTeamsResponse) SetDecodeErr ¶
func (r *ListTeamsResponse) SetDecodeErr(err error)
func (*ListTeamsResponse) SetResponseStatusCode ¶
func (r *ListTeamsResponse) SetResponseStatusCode(in int)
type Member ¶
type ResponseMetadata ¶
type SearchCommentsInTaskResponse ¶
type SearchCommentsInTaskResponse struct { Comments []struct { ID string `json:"id"` CommentText string `json:"comment_text"` Assignee *struct { ID int64 `json:"id"` Username string `json:"username"` Email string `json:"email"` Color string `json:"color"` Initials string `json:"initials"` ProfilePicture string `json:"profilePicture"` } `json:"assignee"` AssignedBy *struct { ID int64 `json:"id"` Username string `json:"username"` Email string `json:"email"` Color string `json:"color"` Initials string `json:"initials"` ProfilePicture string `json:"profilePicture"` } `json:"assigned_by"` User struct { ID int64 `json:"id"` Username string `json:"username"` Email string `json:"email"` Color string `json:"color"` Initials string `json:"initials"` ProfilePicture string `json:"profilePicture"` } `json:"user"` DateAt int64 `json:"date,string"` } `json:"comments"` }
type SearchTasksInTeamResponse ¶
type SearchTasksInTeamResponse struct { Tasks []Task `json:"tasks"` // contains filtered or unexported fields }
func (*SearchTasksInTeamResponse) SetDecodeErr ¶
func (r *SearchTasksInTeamResponse) SetDecodeErr(err error)
func (*SearchTasksInTeamResponse) SetResponseStatusCode ¶
func (r *SearchTasksInTeamResponse) SetResponseStatusCode(in int)
type SearchTasksRequest ¶
type SearchTasksResponse ¶
type SearchTasksResponse struct {
Tasks []Task `json:"tasks"`
}
type SpaceByIDRequest ¶
type SpaceByIDRequest struct {
SpaceID string
}
type SpaceByIDResponse ¶
type SpaceByIDResponse struct { ID string `json:"id"` Name string `json:"name"` Private bool `json:"private"` Statuses []struct { Status string `json:"status"` Type string `json:"type"` Orderindex int `json:"orderindex"` Color string `json:"color"` } `json:"statuses"` MultipleAssignees bool `json:"multiple_assignees"` Features struct { DueDates struct { Enabled bool `json:"enabled"` StartDate bool `json:"start_date"` RemapDueDates bool `json:"remap_due_dates"` RemapClosedDueDate bool `json:"remap_closed_due_date"` } `json:"due_dates"` TimeEstimates struct { Enabled bool `json:"enabled"` } `json:"time_estimates"` } `json:"features,omitempty"` // contains filtered or unexported fields }
func (*SpaceByIDResponse) SetDecodeErr ¶
func (r *SpaceByIDResponse) SetDecodeErr(err error)
func (*SpaceByIDResponse) SetResponseStatusCode ¶
func (r *SpaceByIDResponse) SetResponseStatusCode(in int)
type SpaceFolderlessListsRequest ¶
type SpaceFolderlessListsRequest struct {
SpaceID string
}
type SpaceFolderlessListsResponse ¶
type SpaceFolderlessListsResponse struct { Lists []SpaceFolderlessListsResponse_ListItem `json:"lists"` // contains filtered or unexported fields }
func (SpaceFolderlessListsResponse) DecodeOK ¶
func (r SpaceFolderlessListsResponse) DecodeOK() bool
func (SpaceFolderlessListsResponse) NotFound ¶
func (r SpaceFolderlessListsResponse) NotFound() bool
func (*SpaceFolderlessListsResponse) SetDecodeErr ¶
func (r *SpaceFolderlessListsResponse) SetDecodeErr(err error)
func (*SpaceFolderlessListsResponse) SetResponseStatusCode ¶
func (r *SpaceFolderlessListsResponse) SetResponseStatusCode(in int)
type SpaceFolderlessListsResponse_ListItem ¶
type SpaceFolderlessListsResponse_ListItem struct { ID string `json:"id"` Name string `json:"name"` Folder struct { ID string `json:"id"` Name string `json:"name"` Hidden bool `json:"hidden"` Access bool `json:"access"` } `json:"folder"` Space struct { ID string `json:"id"` Name string `json:"name"` Access bool `json:"access"` } `json:"space"` Archived bool `json:"archived"` }
type Task ¶
type Task struct { ID string `json:"id"` CustomID *string `json:"custom_id"` Name string `json:"name"` TextContent string `json:"text_content"` Description string `json:"description"` Status struct { Status string `json:"status"` Type string `json:"type"` } `json:"status"` DateCreatedTs int64 `json:"date_created,string"` DateUpdatedTs int64 `json:"date_updated,string"` DateClosedTs *int64 `json:"date_closed,string"` TimeEstimateMs *int64 `json:"time_estimate"` DueDate *int64 `json:"due_date,string"` StartDate *int64 `json:"start_date,string"` Parent *string `json:"parent"` Archived bool `json:"archived"` Creator struct { ID int64 `json:"id"` Username string `json:"username"` Color string `json:"color"` Email string `json:"email"` ProfilePicture string `json:"profilePicture"` } `json:"creator"` Assignees []struct { ID int64 `json:"id"` Username string `json:"username"` Color string `json:"color"` Initials string `json:"initials"` Email string `json:"email"` } `json:"assignees"` Tags []struct { Name string `json:"name"` } `json:"tags"` LinkedTasks []struct { TaskID string `json:"task_id"` LinkID string `json:"link_id"` DateCreated int64 `json:"date_created,string"` Userid int64 `json:"userid,string"` } `json:"linked_tasks"` TeamID string `json:"team_id"` URL string `json:"url"` PermissionLevel string `json:"permission_level"` List struct { ID string `json:"id"` Name string `json:"name"` } `json:"list"` Project struct { ID string `json:"id"` Name string `json:"name"` } `json:"project"` Folder struct { ID string `json:"id"` Name string `json:"name"` } `json:"folder"` Space struct { ID string `json:"id"` } `json:"space"` Priority *struct { ID int `json:"id,string"` Name string `json:"priority"` } `json:"priority"` }
func (*Task) ListLinkedTaskIDs ¶
type TaskByIDRequest ¶
type TaskByIDRequest struct {
TaskID string
}
type TaskByIDResponse ¶
type TaskByIDResponse struct { Task // contains filtered or unexported fields }
func (*TaskByIDResponse) SetDecodeErr ¶
func (r *TaskByIDResponse) SetDecodeErr(err error)
func (*TaskByIDResponse) SetResponseStatusCode ¶
func (r *TaskByIDResponse) SetResponseStatusCode(in int)
type TaskMembersRequest ¶
type TaskMembersRequest struct {
TaskID string
}
type TaskMembersResponse ¶
type TaskMembersResponse struct {
Members []Member `json:"members"`
}
type TaskMembersResponse_Member ¶
type TaskMembersResponse_Member struct {
Member
}
type UpdateTaskRequest ¶
type UpdateTaskRequest struct { TaskID string Name string Description string Priority *int StatusName string TimeEstimateMs int64 AssigneeAdds []int64 AssigneeRemoves []int64 DueDate int64 StartDate int64 }
//////////////////// Update Task ////////////////////
type UpdateTaskResponse ¶
type UpdateTaskResponse struct { Task // contains filtered or unexported fields }
func (*UpdateTaskResponse) SetDecodeErr ¶
func (r *UpdateTaskResponse) SetDecodeErr(err error)
func (*UpdateTaskResponse) SetResponseStatusCode ¶
func (r *UpdateTaskResponse) SetResponseStatusCode(in int)
type WebhookMessage ¶
type WebhookMessage struct { WebhookID string `json:"webhook_id"` EventName string `json:"event"` HistoryItems json.RawMessage `json:"history_items"` TaskID *string `json:"task_id"` SpaceID *string `json:"space_id"` ListID *string `json:"list_id"` FolderID *string `json:"folder_id"` }
func ParseWebhook ¶
func ParseWebhook(req *http.Request) *WebhookMessage
Click to show internal directories.
Click to hide internal directories.