Webhook-to-SSE gateway with hierarchical topic routing and signature verification
at main 10 lines 207 B view raw
1package main 2 3import "context" 4 5type Backend interface { 6 Publish(event *Event) error 7 Subscribe(ctx context.Context) <-chan *Event 8 Since(lastEventID string, subscribePath string) []*Event 9 Close() error 10}