package
1.25.0
Repository: https://github.com/stripe/stripe-cli.git
Documentation: pkg.go.dev

# Functions

BaseDashboardURL constructs a dashboard URL with (optionally) the test and account values appended.
ExtractRequestData takes an interface with request data from a Stripe event payload and properly parses it into a StripeRequest struct before returning it.
GetSessionSecret creates a session and returns the webhook signing secret.
Init initializes a new Proxy.
NewEndpointClient returns a new EndpointClient.
NewWebhookEventProcessor constructs a WebhookEventProcessor from the provided websocket delivery function, route table, and config.

# Structs

Config provides the configuration of a Proxy.
EndpointClient is the client used to POST webhook requests to the local endpoint.
EndpointConfig contains the optional configuration parameters of an EndpointClient.
EndpointResponse describes the response to a Stripe event from an endpoint.
EndpointRoute describes a local endpoint's routing configuration.
FailedToPostError describes a failure to send a POST request to an endpoint.
FailedToReadResponseError describes a failure to read the response from an endpoint.
A Proxy opens a websocket connection with Stripe, listens for incoming webhook events, forwards them to the local endpoint and sends the response back to Stripe.
StripeEvent is a representation of a Stripe `event` object we define RequestData as an interface for backwards compatibility Request will hold the deserialized request data.
StripeRequest is a representation of the Request field in a Stripe `event` object.
V2EventPayload describes the payload from the server for a v2 event.
WebhookEventProcessor encapsulates logic around processing and forwarding webhook events.
WebhookEventProcessorConfig defines the external inputs that infuence the behavior of a WebhookEventProcessor.

# Interfaces

EndpointResponseHandler handles a response from the endpoint.

# Type aliases

EndpointResponseHandlerFunc is an adapter to allow the use of ordinary functions as response handlers.