Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UptimeCheckOption ¶
type UptimeCheckOption func(*UptimeCheckService) *UptimeCheckService
func WithDeletes ¶ added in v0.3.0
func WithDeletes(enableDeletes bool) UptimeCheckOption
func WithProvider ¶
func WithProvider(provider UptimeProvider) UptimeCheckOption
func WithProviderAndSettings ¶ added in v0.3.0
func WithProviderAndSettings(provider string, settings any) UptimeCheckOption
func WithSlack ¶
func WithSlack(slackWebhookURL string, slackChannel string) UptimeCheckOption
type UptimeCheckService ¶
type UptimeCheckService struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...UptimeCheckOption) *UptimeCheckService
type UptimeProvider ¶
type UptimeProvider interface {
// CreateOrUpdateCheck create the given check with the uptime monitoring
// provider, or update an existing check. Needs to be idempotent!
CreateOrUpdateCheck(ctx context.Context, check model.UptimeCheck) error
// DeleteCheck deletes the given check from the uptime monitoring provider
DeleteCheck(ctx context.Context, check model.UptimeCheck) error
}
Click to show internal directories.
Click to hide internal directories.