Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract WebhookEventProcessor from Proxy #1066

Merged
merged 5 commits into from
May 3, 2023

Conversation

bernerd-stripe
Copy link
Contributor

Reviewers

r?
cc @stripe/developer-products

Summary

proxy.Proxy remains the primary entrypoint for setting up a listen session, in particular handling validation and processing of direct user inputs. This PR, however, extracts the core webhook processing logic (parsing, filtering, notifications, forwarding, etc.) into WebhookEventProcessor.

Copy link
Collaborator

@vcheung-stripe vcheung-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I scanned through the new methods and it looks identical to the old ones, LGTM.

pkg/proxy/webhook_event_processor.go Outdated Show resolved Hide resolved
@bernerd-stripe bernerd-stripe merged commit d13c261 into master May 3, 2023
6 checks passed
@bernerd-stripe bernerd-stripe deleted the bernerd/proxy-refactor branch May 3, 2023 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants