# Functions
NewClient returns a new Client.
NewEventAck returns a new EventAck message.
NewWebhookResponse returns a new webhookResponse message.
# Constants
Done means log streaming is done.
Loading means the stream is being set up.
Ready means we are ready to receive logs.
Reconnecting means the stream is reconnecting.
# Variables
ErrUnknownID can occur when the websocket session is expired or invalid.
# Structs
Client is the client used to receive webhook requests from Stripe and send back webhook responses from the local endpoint to Stripe.
Config contains the optional configuration parameters of a Client.
DataElement is the data received on the stream.
ErrorElement is an error from the log tailer.
EventAck represents outgoing Ack messages for events received by Stripe.
IncomingMessage represents any incoming message sent by Stripe.
OutgoingMessage represents any outgoing message sent to Stripe.
RequestLogEvent represents incoming request log event messages sent by Stripe.
StateElement is the current state of the stream: loading, ready, etc.
StripeV2Event is the websocket wire representation of a v2 event.
UnknownMessage represents an incoming message with a type that's unknown to the CLI, and therefore cannot be deserialized into a structured type.
Visitor should implement the handlers for each type of element.
WarningElement is a warning from the log tailer.
WebhookEndpoint contains properties about the fake "endpoint" used to format the webhook event.
WebhookEvent represents incoming webhook event messages sent by Stripe.
WebhookResponse represents outgoing webhook response messages sent to Stripe.
# Type aliases
EventHandlerFunc is an adapter to allow the use of ordinary functions as event handlers.