Documentation ¶
Index ¶
- func Delete(ctx *authcontext.Context, taskID int64, incidentID int64) error
- type Incident
- func Create(ctx *authcontext.Context, taskID int64, incident *Incident) (*Incident, error)
- func GetByID(ctx *authcontext.Context, taskID int64, id int64) (*Incident, error)
- func GetIncidents(ctx *authcontext.Context, taskID int64) ([]Incident, error)
- func Update(ctx *authcontext.Context, taskID int64, incident *Incident) (*Incident, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Incident ¶
type Incident struct { ID int64 `json:"id"` TaskID int64 `json:"taskId"` Name string `json:"name" binding:"required"` Description string `json:"description" binding:"required" datastore:",noindex"` Active bool `json:"active"` Status int `json:"status"` CreationTime int64 `json:"creationTime"` UpdateTime int64 `json:"updateTime"` }
Incident defines incident attributes
func GetIncidents ¶
func GetIncidents(ctx *authcontext.Context, taskID int64) ([]Incident, error)
GetIncidents Fetches all incidents for the authenticated user
Click to show internal directories.
Click to hide internal directories.