package
2.0.0+incompatible
Repository: https://github.com/netlify/gocommerce.git
Documentation: pkg.go.dev

# Functions

GetAssetStore reads the asset store from the context.
GetClaims reads the claims contained within the JWT token stored in the context.
GetClaimsAsMap reads the claims contained with the JWT token stored in the context, as a map.
GetConfig reads the tenant configuration from the context.
GetCoupons reads the coupon cache from the context.
GetInstance reads the instance id from the context.
GetInstanceID reads the instance id from the context.
GetMailer reads the mailer from the context.
GetOrderID reads the order ID from the context.
GetPaymentProviders reads the payment providers from the context.
GetRequestID reads the request ID from the context.
GetToken reads the JWT token from the context.
GetUser reads the user from the context.
GetUserID reads the user ID from the context.
IsAdmin reads the admin flag from the context.
WithAdminFlag adds a flag indicating admin status to the context.
WithAssetStore adds the asset store to the context.
WithConfig adds the tenant configuration to the context.
WithCoupons adds the coupon cache to the context based on the site URL.
WithInstance adds the instance id to the context.
WithInstanceID adds the instance id to the context.
WithMailer adds the mailer to the context.
WithOrderID adds the order ID to the context.
WithPaymentProviders adds the payment providers to the context.
WithRequestID adds the provided request ID to the context.
WithToken adds the JWT token to the context.
WithUser adds the user to the context.
WithUserID adds the user ID to the context.