Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { Index int // The unique index of the item in the task-list Author id.ActorID // The "Name" of the user that created this task-item ProjectID id.ProjectID // The project in which the task-item was created ProjectImage string Type Type Reference itemReference // Unique reference to the item that is linked to this task-item Deadline time.Time CreationDate time.Time Done bool }
Item is a single task-item in the task-list belonging to a single user
type List ¶
type List struct { Username string // The "Name" of the user this tudo-list belongs to Tasks []Item }
List is a collection of tudo-assignments
func NewList ¶
New List creates a new tudo-list for the user with the given name. The list contains no tudo-items.
Returns the created list.
func (*List) AddItem ¶
func (l *List) AddItem(author id.ActorID, projectID id.ProjectID, taskType Type, refType ReferenceType, refID string, deadline time.Time) *List
AddItem creates a new -.tudo item and adds it to the list. The amount of tudo-items is the id of the newly created item.
Returns the list
func (*List) GetTaskDone ¶
GetTaskDone returns all items which are already done.
func (*List) GetTaskUndone ¶
GetTaskUndone returns all items which are not already done.
type ReferenceType ¶
type ReferenceType int
ReferenceType is the type of the entity that is referenced by the task-item
const ( Case ReferenceType = iota Sequence )
These are the possible reference-types
Click to show internal directories.
Click to hide internal directories.