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

# Functions

GetEventMetadata returns the CLIAnalyticsEventMetadata from the provided context.
GetTelemetryClient returns the CLIAnalyticsEventMetadata from the provided context.
IsV2Path checks if the path is for V1 API.
NewEventMetadata initializes an instance of CLIAnalyticsEventContext.
TelemetryOptedOut returns true if the user has opted out of telemetry, false otherwise.
ValidateAPIBaseURL returns an error if apiBaseURL isn't allowed.
ValidateDashboardBaseURL returns an error if dashboardBaseURL isn't allowed.
WithEventMetadata returns a new copy of context.Context with the provided CLIAnalyticsEventMetadata.
WithTelemetryClient returns a new copy of context.Context with the provided telemetryClient.

# Constants

APIVersion is API version used in CLI.
DefaultAPIBaseURL is the default base URL for API requests.
DefaultDashboardBaseURL is the default base URL for dashboard requests.
DefaultFilesAPIBaseURL is the default base URL for Files API requsts.
DefaultTelemetryEndpoint is the default URL for the telemetry destination.
v1 and v2 API interop constants.
v1 and v2 API interop constants.
v1 and v2 API interop constants.
v1 and v2 API interop constants.

# Structs

AnalyticsTelemetryClient sends event information to r.stripe.com.
CLIAnalyticsEventMetadata is the structure that holds telemetry data context that is ultimately sent to the Stripe Analytics Service.
Client is the API client used to sent requests to Stripe.
NoOpTelemetryClient does not call any endpoint and returns an empty response.

# Interfaces

RequestPerformer is an interface for executing requests against the Stripe API, usually satisfied by providing a stripe.Client.
TelemetryClient is an interface that can send two types of events: an API request, and just general events.