rest

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL