package
3.16.0+incompatible
Repository: https://github.com/sendgrid/sendgrid-go.git
Documentation: pkg.go.dev

# README

This helper allows you to quickly and easily enable/disable SecureWebhook feature or get the public key through Twilio SendGrid.

Dependencies

Quick Start

Run the example (make sure you have set your environment variable to include your SENDGRID_API_KEY).

go run examples/eventwebhook/eventwebhook.go

Usage

Test

go test ./... -v

or

cd helpers/eventwebhook
go test -v

# Functions

ConvertPublicKeyBase64ToECDSA takes a base64 ECDSA public key and converts it into the ECDSA Public Key type.
GetRequestBody ...
NewSettings ...
VerifySignature uses the ECDSA publicKey and verifies received payload and signature.

# Constants

TimestampHTTPHeader is the timestamp http header name for timestamp.
VerificationHTTPHeader is the signature verification http header name for the signature being sent.

# Structs

RS represents the ECDSA signature.
Settings ...