Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TaskStates = [...]string{
"UNKNOWN",
"NOT_COMPLETED",
"COMPLETED",
}
TaskStates stringified
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` // ID is a unique ID for the task User string `json:"user"` // User to which this task belongs Text string `json:"text"` // Text is the user visible text for the task State TaskState `json:"state"` // State is the current state of the task Due time.Time `json:"due"` // Due is the due date/time of the task }
Task is a unique task
type TaskState ¶
type TaskState int
TaskState type
func TaskStateFromString ¶
func (TaskState) MarshalBSONValue ¶
MarshalBSONValue for TaskState
func (TaskState) MarshalJSON ¶
MarshalJSON for TaskState
func (*TaskState) UnmarshalBSONValue ¶
UnmarshalBSONValue for TaskState
func (*TaskState) UnmarshalJSON ¶
UnmarshalJSON for TaskState
Click to show internal directories.
Click to hide internal directories.