statping: github.com/hunterlong/statping/types/notifier Index | Files

package notifier

import "github.com/hunterlong/statping/types/notifier"

Index

Package Files

interface.go

type Notifier Uses

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() (string, error)                              // OnTest is triggered for testing
}

Notifier interface is required to create a new Notifier

Package notifier imports 2 packages (graph). Updated 2020-05-04. Refresh now. Tools for package owners.