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 WithProvider ¶
func WithProvider(provider UptimeProvider) UptimeCheckOption
func WithProviderName ¶
func WithProviderName(provider string) 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 {
// HasCheck true when the check with the given ID exists, false otherwise
HasCheck(check model.UptimeCheck) bool
// CreateOrUpdateCheck create the given check with the uptime monitoring
// provider, or update an existing check. Needs to be idempotent!
CreateOrUpdateCheck(check model.UptimeCheck) error
// DeleteCheck deletes the given check with from the uptime monitoring provider
DeleteCheck(check model.UptimeCheck) error
}
Click to show internal directories.
Click to hide internal directories.