Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
RegisterRoutes wires all application dependencies and registers HTTP routes.
Types ¶
type RouteOptions ¶ added in v0.2.0
type RouteOptions struct {
EmailSender email.Sender
// StripeClient, when non-nil, overrides the real Stripe SDK client used by
// the subscription handler. Tests inject an in-memory fake; production
// callers leave this nil so NewStripeClient is used.
StripeClient subscription.StripeClient
// StripeEventVerifier, when non-nil, overrides the real Stripe webhook
// signature verifier. Tests inject a fake verifier that accepts any
// signature; production leaves this nil.
StripeEventVerifier webhook.EventVerifier
}
RouteOptions allows optional overrides when registering routes (e.g. for testing).
Click to show internal directories.
Click to hide internal directories.