Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidContentType = errors.New("form parameter encoding not supported, please change the hook to send JSON payloads")
ErrInvalidContentType is returned when the content-type is not a JSON body.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error represents a handler error. It provides methods for a HTTP status code and embeds the built-in error interface.
type HTTPError ¶
HTTPError represents an error with an associated HTTP status code.
type PagerDutyInterceptor ¶
type PagerDutyInterceptor struct {
Logger *zap.SugaredLogger
}
func (*PagerDutyInterceptor) Process ¶
func (pdi *PagerDutyInterceptor) Process(ctx context.Context, r *triggersv1.InterceptorRequest) *triggersv1.InterceptorResponse
func (PagerDutyInterceptor) ServeHTTP ¶
func (pdi PagerDutyInterceptor) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.