mohammed90 / caddy-ngrok-listener

Caddy listener_wrapper to automatically listen on an ngrok tunnel
Apache License 2.0
20 stars 2 forks source link

[HTTPEndpointOption] WithWebhookVerification #16

Closed jtszalay closed 11 months ago

jtszalay commented 1 year ago

Surface the following HTTPEndpointOption:


// https://github.com/ngrok/ngrok-go/blob/main/config/webhook_verification.go
// Configuration for webhook verification.
type webhookVerification struct {
    // The webhook provider
    Provider string
    // The secret for verifying webhooks from this provider.
    Secret string
}
// WithWebhookVerification configures webhook vericiation for this edge.
func WithWebhookVerification(provider string, secret string) HTTPEndpointOption