Versions in this module Expand all Collapse all v1 v1.1.0 Dec 2, 2025 Changes in this version + func LoadConfig(path string) (*config.Config, error) + func NewHandler(cfg *config.Config, opts ...Option) (http.Handler, func(context.Context) error, error) + func RegisterRoutes(router chi.Router, app *App) + type App struct + CartService *stripesvc.CartService + Config *config.Config + Coupons coupons.Repository + IdempotencyStore *idempotency.MemoryStore + Notifier callbacks.Notifier + Paywall *paywall.Service + Store storage.Store + Stripe *stripesvc.Client + Subscriptions *subscriptions.Service + Verifier x402.Verifier + func NewApp(cfg *config.Config, opts ...Option) (*App, error) + func (a *App) Close() error + func (a *App) Handler() http.Handler + func (a *App) Router() chi.Router + type Config = config.Config + type Option func(*options) + func WithNotifier(notifier callbacks.Notifier) Option + func WithRouter(router chi.Router) Option + func WithStore(store storage.Store) Option + func WithVerifier(verifier x402.Verifier) Option