Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCheckoutHandler ¶
NewCheckoutHandler constructs the HTTP handler for checkout-api.
func NewStorefrontHandler ¶
NewStorefrontHandler constructs the HTTP handler for storefront-web.
func NewWorkerHandler ¶
NewWorkerHandler constructs the HTTP handler for fulfillment-worker.
Types ¶
type CheckoutResponse ¶
type CheckoutResponse struct {
Service string `json:"service"`
Environment string `json:"environment"`
DatabaseSchema string `json:"databaseSchema"`
DatabaseConfigured bool `json:"databaseConfigured"`
DatabaseURL string `json:"databaseURL,omitempty"`
InstantPayoutsEnabled bool `json:"instantPayoutsEnabled"`
CheckoutV2Banner bool `json:"checkoutV2Banner"`
OrdersQueueTopic string `json:"ordersQueueTopic"`
ReceivedPreviewHeader string `json:"receivedPreviewHeader"`
WorkerResponse json.RawMessage `json:"workerResponse,omitempty"`
}
CheckoutResponse represents the JSON payload returned by checkout-api.
type HealthResponse ¶
HealthResponse is returned by /healthz endpoints across all demo services.
type StorefrontResponse ¶
type StorefrontResponse struct {
StorefrontEnv string `json:"storefrontEnv"`
PropagatedHeader string `json:"propagatedHeader"`
Checkout json.RawMessage `json:"checkout"`
}
StorefrontResponse wraps the storefront context and downstream checkout-api response.
type WorkerResponse ¶
type WorkerResponse struct {
Service string `json:"service"`
Environment string `json:"environment"`
OrdersQueueTopic string `json:"ordersQueueTopic"`
ConsumerGroup string `json:"consumerGroup"`
ReceivedPreviewHeader string `json:"receivedPreviewHeader"`
}
WorkerResponse represents the JSON payload returned by fulfillment-worker.
Directories
¶
| Path | Synopsis |
|---|---|
|
services
|
|
|
checkout-api
command
|
|
|
fulfillment-worker
command
|
|
|
storefront-web
command
|
Click to show internal directories.
Click to hide internal directories.