Documentation ¶
Index ¶
- Variables
- func DeleteResources(rs []text.ID) store.Mutation
- func GetAll(user string, filters ...Filter) func(*bolt.Tx) ([]*Task, error)
- type ByOldest
- type ByOwner
- type ByReader
- type ByWriter
- type Completion
- type Deleted
- type DueWithin
- type Filter
- type ID
- type MultiAnd
- type MultiOr
- type Not
- type NotYetDue
- type Overdue
- type Removed
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var TaskBucket = store.Bucket("tasks")
TaskBucket is the Bucket for Tasks.
Functions ¶
Types ¶
type ByOldest ¶
type ByOldest []*Task
ByOldest is a sort.Interface implementation for a slice of *Task to be sorted by due date: from oldest to newest, followed by tasks without a due date.
type Completion ¶
type Completion int
const ( Incomplete Completion = iota Complete )
func (Completion) Member ¶
func (c Completion) Member(of *Task) bool
type Deleted ¶
type Deleted string
Deleted is a Resourcer which can notify that the convo has been deleted.
type ID ¶
ID is a store.LoadStorer for Tasks.
func (ID) MarshalJSON ¶
func (*ID) UnmarshalJSON ¶
type Removed ¶
type Removed ID
Removed is a Resourcer which can be used to notify that the user has been removed from the Task without showing them the Task itself.
type Task ¶
type Task struct { users.Group ID ID `json:"id"` Name string `json:"name"` Bounty int64 `json:"bounty,omitempty"` Completed bool `json:"completed"` CompletedBy string `json:"completedBy,omitempty"` CompletedAt *time.Time `json:"completedAt,omitempty"` Due *time.Time `json:"due,omitempty"` // Resources are foreign keys into the Text bucket. They should // never be exposed to the user. Resources []text.ID `json:"resources,omitempty"` // Notes are actual string resources passed with the Task. // They are not stored in the task's Bucket. Notes []string `json:"notes,omitempty"` }
Task is a job or task which can be handled by someone.
Click to show internal directories.
Click to hide internal directories.