Documentation ¶
Index ¶
- type Address
- type Attachment
- type Board
- type BoardPermission
- type GeoLocation
- type Reaction
- type Repository
- func (db *Repository) AddTaskAttachment(ctx context.Context, taskID, filePath string, attachment *tasksv1.Attachment) (*tasksv1.Task, error)
- func (db *Repository) AddTaskStatus(ctx context.Context, boardId string, status *tasksv1.TaskStatus) (*tasksv1.Board, error)
- func (db *Repository) AddTaskTag(ctx context.Context, boardId string, tag *tasksv1.TaskTag) (*tasksv1.Board, error)
- func (db *Repository) AssignTask(ctx context.Context, taskID, assigneeID, assignedByUserId string) (*tasksv1.Task, error)
- func (db *Repository) CompleteTask(ctx context.Context, taskID string) (*tasksv1.Task, error)
- func (db *Repository) CreateBoard(ctx context.Context, board *tasksv1.Board) error
- func (db *Repository) CreateTask(ctx context.Context, task *tasksv1.Task) error
- func (db *Repository) CreateTaskComment(ctx context.Context, taskId, boardId string, comment string) error
- func (db *Repository) DeleteBoard(ctx context.Context, id string) error
- func (db *Repository) DeleteStatusFromTasks(ctx context.Context, boardId string, status string, replacement string) error
- func (db *Repository) DeleteTagsFromTasks(ctx context.Context, boardId string, tag string) error
- func (db *Repository) DeleteTask(ctx context.Context, id string) error
- func (db *Repository) DeleteTaskAttachment(ctx context.Context, taskID, attachmentName string) (*tasksv1.Task, error)
- func (db *Repository) DeleteTaskStatus(ctx context.Context, boardID, status string) (*tasksv1.Board, error)
- func (db *Repository) DeleteTaskTag(ctx context.Context, boardID, tag string) (*tasksv1.Board, error)
- func (db *Repository) DeleteTasksMatchingQuery(ctx context.Context, queries []*tasksv1.TaskQuery) error
- func (db *Repository) DeletesPriorityFromTasks(ctx context.Context, boardId string, priority, replacement int32) error
- func (db *Repository) GetBoard(ctx context.Context, id string) (*tasksv1.Board, error)
- func (db *Repository) GetTask(ctx context.Context, taskID string) (*tasksv1.Task, error)
- func (db *Repository) GetTaskTimeline(ctx context.Context, ids []string) ([]*tasksv1.TaskTimelineEntry, error)
- func (db *Repository) ListBoards(ctx context.Context) ([]*tasksv1.Board, error)
- func (db *Repository) ListTasks(ctx context.Context, queries []*tasksv1.TaskQuery, ...) ([]*tasksv1.Task, int, error)
- func (db *Repository) UpdateBoard(ctx context.Context, update *tasksv1.UpdateBoardRequest) (*tasksv1.Board, error)
- func (db *Repository) UpdateBoardSubscription(ctx context.Context, boardId string, subscription *tasksv1.Subscription) error
- func (db *Repository) UpdateTask(ctx context.Context, authenticatedUserId string, ...) (*tasksv1.Task, error)
- func (db *Repository) UpdateTaskComment(ctx context.Context, update *tasksv1.UpdateTaskCommentRequest) (*tasksv1.TaskTimelineEntry, error)
- func (db *Repository) UpdateTaskSubscription(ctx context.Context, taskId string, subscription *tasksv1.Subscription) error
- type Subscription
- type Task
- type TaskComment
- type TaskPriority
- type TaskStatus
- type TaskTag
- type Timeline
- type ValueChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { PostalCode string `bson:"postalCode"` City string `bson:"city"` Street string `bson:"street"` Extra string `bson:"extra,omitempty"` }
func (*Address) ToProto ¶
func (addr *Address) ToProto() *customerv1.Address
type Attachment ¶
type Attachment struct { Filename string `bson:"filename"` Name string `bson:"name"` ContentType string `bson:"contentType"` }
func (*Attachment) ToProto ¶
func (at *Attachment) ToProto() *tasksv1.Attachment
type Board ¶
type Board struct { ID primitive.ObjectID `bson:"_id,omitempty"` DisplayName string `bson:"displayName,omitempty"` Description string `bson:"description,omitempty"` TaskStatuses []TaskStatus `bson:"statuses"` TaskTags []TaskTag `bson:"tags"` TaskPriorities []TaskPriority `bson:"priorities"` HelpText string `bson:"helpText,omitempty"` WritePermissions *BoardPermission `bson:"writePermissions,omitempty"` ReadPermissions *BoardPermission `bson:"readPermissions,omitempty"` OwnerID string `bson:"ownerId"` EligibleUserIds []string `bson:"eligibleUserIds,omitempty"` EligibleRoleIds []string `bson:"eligibleRoleIds,omitempty"` Subscriptions map[string]Subscription `bson:"subscriptions"` InitialStatus string `bson:"initialStatus"` DoneStatus string `bson:"doneStatus"` }
type BoardPermission ¶
type BoardPermission struct { AllowRoles []string `bson:"allowRoles,omitempty"` AllowUsers []string `bson:"allowUsers,omitempty"` DenyRoles []string `bson:"denyRoles,omitempty"` DenyUsers []string `bson:"denyUsers,omitempty"` }
func (*BoardPermission) ToProto ¶
func (perm *BoardPermission) ToProto() *tasksv1.BoardPermission
type GeoLocation ¶
func (*GeoLocation) ToProto ¶
func (geo *GeoLocation) ToProto() *commonv1.GeoLocation
type Reaction ¶ added in v0.8.0
func (*Reaction) ToProto ¶ added in v0.8.0
func (reaction *Reaction) ToProto() *tasksv1.TaskReaction
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) AddTaskAttachment ¶
func (db *Repository) AddTaskAttachment(ctx context.Context, taskID, filePath string, attachment *tasksv1.Attachment) (*tasksv1.Task, error)
func (*Repository) AddTaskStatus ¶ added in v0.3.0
func (db *Repository) AddTaskStatus(ctx context.Context, boardId string, status *tasksv1.TaskStatus) (*tasksv1.Board, error)
func (*Repository) AddTaskTag ¶ added in v0.3.0
func (*Repository) AssignTask ¶
func (*Repository) CompleteTask ¶
func (*Repository) CreateBoard ¶
func (*Repository) CreateTask ¶
func (*Repository) CreateTaskComment ¶ added in v0.9.0
func (*Repository) DeleteBoard ¶
func (db *Repository) DeleteBoard(ctx context.Context, id string) error
func (*Repository) DeleteStatusFromTasks ¶ added in v0.3.0
func (*Repository) DeleteTagsFromTasks ¶ added in v0.3.0
func (*Repository) DeleteTask ¶
func (db *Repository) DeleteTask(ctx context.Context, id string) error
func (*Repository) DeleteTaskAttachment ¶
func (*Repository) DeleteTaskStatus ¶ added in v0.3.0
func (*Repository) DeleteTaskTag ¶ added in v0.3.0
func (*Repository) DeleteTasksMatchingQuery ¶ added in v0.3.0
func (*Repository) DeletesPriorityFromTasks ¶ added in v0.7.1
func (*Repository) GetTaskTimeline ¶ added in v0.8.0
func (db *Repository) GetTaskTimeline(ctx context.Context, ids []string) ([]*tasksv1.TaskTimelineEntry, error)
func (*Repository) ListBoards ¶
func (*Repository) UpdateBoard ¶ added in v0.4.0
func (db *Repository) UpdateBoard(ctx context.Context, update *tasksv1.UpdateBoardRequest) (*tasksv1.Board, error)
func (*Repository) UpdateBoardSubscription ¶ added in v0.7.0
func (db *Repository) UpdateBoardSubscription(ctx context.Context, boardId string, subscription *tasksv1.Subscription) error
func (*Repository) UpdateTask ¶
func (db *Repository) UpdateTask(ctx context.Context, authenticatedUserId string, update *tasksv1.UpdateTaskRequest) (*tasksv1.Task, error)
func (*Repository) UpdateTaskComment ¶ added in v0.9.2
func (db *Repository) UpdateTaskComment(ctx context.Context, update *tasksv1.UpdateTaskCommentRequest) (*tasksv1.TaskTimelineEntry, error)
func (*Repository) UpdateTaskSubscription ¶ added in v0.7.0
func (db *Repository) UpdateTaskSubscription(ctx context.Context, taskId string, subscription *tasksv1.Subscription) error
type Subscription ¶ added in v0.7.0
type Subscription struct { UserId string `bson:"userId"` Types []tasksv1.NotificationType `bson:"types"` Unsubscribed bool `bson:"unsubscribed"` }
func (*Subscription) ToProto ¶ added in v0.7.0
func (s *Subscription) ToProto() *tasksv1.Subscription
type Task ¶
type Task struct { ID primitive.ObjectID `bson:"_id,omitempty"` BoardID string `bson:"boardId"` Title string `bson:"title"` Description string `bson:"description"` Creator string `bson:"creator"` Assignee string `bson:"assignee,omitempty"` GeoLocation *GeoLocation `bson:"location,omitempty"` Address *Address `bson:"address,omitempty"` Tags []string `bson:"tags"` Status string `bson:"status"` AssignedBy string `bson:"assignedBy,omitempty"` DueTime time.Time `bson:"dueTime,omitempty"` CreateTime time.Time `bson:"createTime"` UpdateTime time.Time `bson:"updateTime"` AssignTime time.Time `bson:"assignTime,omitempty"` CompleteTime time.Time `bson:"completeTime,omitempty"` Properties map[string][]byte `bson:"properties"` Subscriptions map[string]Subscription `bson:"subscriptions"` Priority *int32 `bson:"priority"` Attachments []Attachment `bson:"attachments"` }
type TaskComment ¶ added in v0.8.0
type TaskComment struct { Comment string `bson:"comment"` Reactions []Reaction `bson:"reactions"` EditTime time.Time `bson:"editTime,omitempty"` DeleteTime time.Time `bson:"deleteTime,omitempty"` Offtopic time.Time `bson:"offTopicTime,omitempty"` }
func (*TaskComment) ToProto ¶ added in v0.8.0
func (c *TaskComment) ToProto() *tasksv1.TaskComment
type TaskPriority ¶ added in v0.7.0
type TaskPriority struct { Name string `bson:"name"` Description string `bson:"description,omitempty"` Color string `bson:"color"` Priority int32 `bson:"priority"` }
func (*TaskPriority) ToProto ¶ added in v0.7.0
func (p *TaskPriority) ToProto() *tasksv1.TaskPriority
type TaskStatus ¶
type TaskStatus struct { Status string `bson:"status"` Description string `bson:"description,omitempty"` Color string `bson:"color"` }
func (*TaskStatus) ToProto ¶
func (status *TaskStatus) ToProto() *tasksv1.TaskStatus
type TaskTag ¶ added in v0.3.0
type Timeline ¶ added in v0.8.0
type Timeline struct { ID primitive.ObjectID `bson:"_id,omitempty"` TaskID primitive.ObjectID `bson:"taskId"` BoardID primitive.ObjectID `bson:"boardId"` CreateTime time.Time `bson:"createTime"` UserID string `bson:"userId"` ValueChange *ValueChange `bson:"valueChange,omitempty"` Comment *TaskComment `bson:"comment,omitempty"` }
type ValueChange ¶ added in v0.8.0
type ValueChange struct { FieldName string `bson:"fieldName"` OldValue any `bson:"oldValue,omitempty"` NewValue any `bson:"newValue,omitempty"` }
func (*ValueChange) ToProto ¶ added in v0.8.0
func (valueChange *ValueChange) ToProto() (*tasksv1.TaskValueChange, error)
func (*ValueChange) ValueFrom ¶ added in v0.8.0
func (vc *ValueChange) ValueFrom(t *Task) any
Click to show internal directories.
Click to hide internal directories.