mirror of https://github.com/statping/statping
14 lines
518 B
Go
14 lines
518 B
Go
![]() |
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) error // OnSuccess is triggered when a service is successful
|
||
|
OnFailure(*services.Service, *failures.Failure) error // OnFailure is triggered when a service is failing
|
||
|
OnTest() error // OnTest is triggered for testing
|
||
|
}
|