webhooks

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package webhooks provides webhook fulfilment endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSignature

func ComputeSignature(r *http.Request, authToken string) (string, error)

ComputeSignature builds the expected webhook signature from a Twilio request as described in https://www.twilio.com/docs/usage/security#validating-requests.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(cacher cache.Cacher, db *database.Database, h *render.Renderer) *Controller

func (*Controller) HandleTwilio

func (c *Controller) HandleTwilio() http.Handler

HandleTwilio handles secrets rotation.

type TwilioWebhookPayload

type TwilioWebhookPayload struct {
	ErrorCode string `json:"error_code"`
}

Jump to

Keyboard shortcuts

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