task

package
v0.0.0-...-039f709 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecurrenceType

type RecurrenceType string
const (
	RecurrenceNone   RecurrenceType = "none"
	RecurrenceDaily  RecurrenceType = "daily"
	RecurrenceWeekly RecurrenceType = "weekly"
)

type Task

type Task struct {
	ID         primitive.ObjectID   `json:"id, omitempty" bson:"_id"`
	Title      string               `json:"title,omitempty" bson:"title,omitempty"`
	Categories []primitive.ObjectID `json:"categories" bson:"categories"`
	Completed  bool                 `json:"completed,omitempty" bson:"completed,omitempty"`
	Recurrence RecurrenceType       `json:"recurrence,omitempty" bson:"recurrence,omitempty"`
	IsPublic   bool                 `json:"isPublic" bson:"isPublic"`
	CreatedBy  primitive.ObjectID   `json:"created_by, omitempty" bson:"created_by"`
	CreatedAt  time.Time            `json:"createdAt,omitempty" bson:"createdAt,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL