You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
statping/types/notifier/interface.go

15 lines
643 B

package notifier
import (
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/services"
)
// Notifier interface is required to create a new Notifier
type Notifier interface {
OnSuccess(services.Service) (string, error) // OnSuccess is triggered when a service is successful
OnFailure(services.Service, failures.Failure) (string, error) // OnFailure is triggered when a service is failing
OnTest() (string, error) // OnTest is triggered for testing
OnSave() (string, error) // OnSave is triggered for when saved
}