Documentation ¶
Overview ¶
Package internal defines the types used to create Tasks and their corresponding attributes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Category ¶
type Category string
Category is human readable value meant to be used to organize your tasks. Category values are unique.
type CreateParams ¶
CreateParams defines the arguments used for creating Task records.
func (CreateParams) Validate ¶
func (c CreateParams) Validate() error
Validate indicates whether the fields are valid or not.
type Dates ¶
Dates indicates a point in time where a task starts or completes, dates are not enforced on Tasks.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents an error that could be wrapping another error, it includes a code for determining what triggered the error.
type Priority ¶
type Priority int8
Priority indicates how important a Task is.
const ( // PriorityNone indicates the task needs to be prioritized. PriorityNone Priority = iota // PriorityLow indicates a non urgent task. PriorityLow // PriorityMedium indicates a task that should be completed soon. PriorityMedium // PriorityHigh indicates an urgent task that must be completed as soon as possible. PriorityHigh )
type SearchParams ¶
type SearchParams struct { Description *string Priority *Priority IsDone *bool From int64 Size int64 }
SearchParams defines the arguments used for searching Task records.
func (SearchParams) IsZero ¶
func (a SearchParams) IsZero() bool
IsZero determines whether the search arguments have values or not.
type SearchResults ¶
SearchResults defines the collection of tasks that were found.
Directories ¶
Path | Synopsis |
---|---|
envvartesting
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
resttesting
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
tools
module
|