Categorygithub.com/jimmyjames85/SendGrid
repository
0.0.0-20240106040744-10c1fa291194
Repository: https://github.com/jimmyjames85/sendgrid.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

SendGrid

Event web hook consumer for SendGrid's eventwebhook events. It accepts all events and stores the last N events in memory, and serves the recent events for inspection later.

How to configure

Configure SendGrid to point to the /eventwebhook endpoint. To view recent events visit the /recent endpoint.

envvardesc
PRETTY_PRINTPretty prints log output. JSON is always served condensed
RECENT_EVENT_COUNTMaximum number of events to hold in memory.
PORTWhat port to serve on.
export PRETTY_PRINT=true
export RECENT_EVENT_COUNT=200
export PORT=5555
go run cmd/eventwebhook/main.go