Versions in this module Expand all Collapse all v0 v0.91.0 Jan 3, 2024 v0.91.0-rc3 May 11, 2023 v0.91.0-rc2 May 11, 2023 v0.91.0-rc1 May 11, 2023 v0.90.80 Mar 18, 2022 v0.90.78 Oct 1, 2021 v0.90.77 Aug 18, 2021 Changes in this version + func Samples() error + func SetDB(database database.Database) + type Incident struct + CreatedAt time.Time + Description string + Id int64 + ServiceId int64 + Title string + UpdatedAt time.Time + Updates []*IncidentUpdate + func All() []*Incident + func Find(id int64) (*Incident, error) + func FindByService(id int64) []*Incident + func (i *Incident) AfterCreate() + func (i *Incident) AfterDelete() + func (i *Incident) AfterFind() + func (i *Incident) AfterUpdate() + func (i *Incident) BeforeCreate() error + func (i *Incident) BeforeUpdate() error + func (i *Incident) Create() error + func (i *Incident) Delete() error + func (i *Incident) Update() error + func (i *Incident) Validate() error + type IncidentUpdate struct + CreatedAt time.Time + Id int64 + IncidentId int64 + Message string + Type string + UpdatedAt time.Time + func FindUpdate(uid int64) (*IncidentUpdate, error) + func (i *IncidentUpdate) AfterCreate() + func (i *IncidentUpdate) AfterDelete() + func (i *IncidentUpdate) AfterFind() + func (i *IncidentUpdate) AfterUpdate() + func (i *IncidentUpdate) BeforeCreate() error + func (i *IncidentUpdate) BeforeUpdate() error + func (i *IncidentUpdate) Create() error + func (i *IncidentUpdate) Delete() error + func (i *IncidentUpdate) Update() error + func (i *IncidentUpdate) Validate() error