Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateSignature ¶
func ValidateSignature(validators ...provider.SignatureValidator) func(next http.Handler) http.Handler
ValidateSignature middleware to validate the signature header.
Types ¶
type WebhookHandler ¶
type WebhookHandler struct {
// contains filtered or unexported fields
}
func NewWebhookHandler ¶
func NewWebhookHandler(c wh.Connector) *WebhookHandler
NewWebhookHandler creates a new content handler.
func (*WebhookHandler) HandleWebhook ¶
func (h *WebhookHandler) HandleWebhook(w http.ResponseWriter, r *http.Request)
SaveContent responsible to receive the callback from a webhook.
func (*WebhookHandler) Routes ¶
func (h *WebhookHandler) Routes(validators ...provider.SignatureValidator) http.Handler
Click to show internal directories.
Click to hide internal directories.