Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoValidSignatures is returned when a webhook is not properly signed // with the expected signature. When receiving this error, it is reccommended // that the server return HTTP 403 to prevent redelivery. ErrNoValidSignatures = errors.New("invalid webhook signature") // ErrMalformedHeader is returned when the *http.Request is missing the // X-PagerDuty-Signature header. When receiving this error, it is recommended // that the server return HTTP 400 to prevent redelivery. ErrMalformedHeader = errors.New("X-PagerDuty-Signature header is either missing or malformed") // ErrMalformedBody is returned when the *http.Request body is either // missing or malformed. When receiving this error, it's recommended that the // server return HTTP 400 to prevent redelivery. ErrMalformedBody = errors.New("HTTP request body is either empty or malformed") )
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func (*Validator) IsSupported ¶
Click to show internal directories.
Click to hide internal directories.