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) 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) 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) 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 ¶
type DbClient struct {
// contains filtered or unexported fields
}
func (*DbClient) CreateOrUpdateIncidents ¶
func (*DbClient) GetAllStatusPages ¶
func (*DbClient) GetCurrentIncidents ¶ added in v0.11.0
func (*DbClient) GetIncidents ¶
func (*DbClient) GetStatusPage ¶
func (*DbClient) InsertStatusPage ¶
func (*DbClient) SeedStatusPages ¶
func (*DbClient) UpdateStatusPage ¶
Click to show internal directories.
Click to hide internal directories.