Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OrderCtxKey = &contextKey{"order"}
View Source
var UserCtxKey = &contextKey{"user"}
Functions ¶
func PlaceOrder ¶
func PlaceOrder(w http.ResponseWriter, r *http.Request)
PlaceOrder takes the posted request and returns the sandwich value
Types ¶
type OrderConfig ¶
type OrderConfig struct { Runtime string `yaml:"runtime"` Path string `yaml:"path"` Env []*string `yaml:"env"` Auth string `yaml:"auth"` AuthHeader string `yaml:"auth_header"` }
OrderConfig represents the function configuration
type OrderContext ¶
OrderContext hold values for the requested tenant and the order name
func OrderFromContext ¶
func OrderFromContext(ctx context.Context) *OrderContext
OrderFromContext returns the stored order context
Click to show internal directories.
Click to hide internal directories.