Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Task ¶
type Task struct { ID int64 `json:"id"` Name string `json:"name" binding:"required"` Description string `json:"description" binding:"required" datastore:",noindex"` CreationTime int64 `json:"creationTime"` UpdateTime int64 `json:"updateTime"` Active bool `json:"active"` IncidentsCount int64 `json:"incidentsCount"` PendingIncidentsCount int `json:"pendingIncidentsCount" datastore:"-"` }
Task defines task attributes
func GetByID ¶
func GetByID(ctx *authcontext.Context, id int64) (*Task, error)
GetByID a task based on its numeric ID
Click to show internal directories.
Click to hide internal directories.