Documentation ¶
Index ¶
- type Config
- type DbClient
- func (d *DbClient) AutoMigrate(ctx context.Context) error
- func (d *DbClient) CreateOrUpdateIncidents(ctx context.Context, incidents []api.Incident) error
- func (d *DbClient) DeleteStatusPage(background context.Context, url string) error
- func (d *DbClient) GetAllStatusPages(ctx context.Context) ([]api.StatusPage, error)
- func (d *DbClient) GetCurrentIncidents(ctx context.Context, statusPageUrl string) ([]api.Incident, error)
- func (d *DbClient) GetIncidents(ctx context.Context, statusPageUrl string) ([]api.Incident, error)
- func (d *DbClient) GetIncidentsWithoutJobsStarted(ctx context.Context, limit int) ([]api.Incident, error)
- func (d *DbClient) GetStatusPage(ctx context.Context, url string) (*api.StatusPage, error)
- func (d *DbClient) InsertStatusPage(ctx context.Context, statusPage api.StatusPage) error
- func (d *DbClient) SeedStatusPages() error
- func (d *DbClient) SetIncidentNotificationStartedToTrue(ctx context.Context, incidents []api.Incident) error
- func (d *DbClient) UpdateStatusPage(ctx context.Context, statusPage api.StatusPage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbClient ¶
func (*DbClient) CreateOrUpdateIncidents ¶
func (*DbClient) DeleteStatusPage ¶ added in v0.121.0
func (*DbClient) GetAllStatusPages ¶
func (*DbClient) GetCurrentIncidents ¶ added in v0.11.0
func (d *DbClient) GetCurrentIncidents(ctx context.Context, statusPageUrl string) ([]api.Incident, error)
Current incidents are incidents that have not ended and have a start time in the last two weeks The two week cutiff is not ideal but some incidents don't have a specified end time
func (*DbClient) GetIncidents ¶
func (*DbClient) GetIncidentsWithoutJobsStarted ¶ added in v0.92.0
func (*DbClient) GetStatusPage ¶
func (*DbClient) InsertStatusPage ¶
func (*DbClient) SeedStatusPages ¶
func (*DbClient) SetIncidentNotificationStartedToTrue ¶ added in v0.92.0
func (*DbClient) UpdateStatusPage ¶
Click to show internal directories.
Click to hide internal directories.