Documentation
¶
Index ¶
- Constants
- func BaristaOrder(ctx workflow.Context, input *proto.BaristaOrderInput) (*proto.BaristaOrderResult, error)
- func Customer(ctx workflow.Context, input *proto.CustomerInput, state *CustomerWorkflowState) error
- func KitchenOrder(ctx workflow.Context, input *proto.KitchenOrderInput) (*proto.KitchenOrderResult, error)
- func Order(ctx workflow.Context, input *proto.OrderInput) (*proto.OrderResult, error)
- type BaristaOrderWorfklow
- type CustomerWorkflowState
- type KitchenOrderWorfklow
Constants ¶
View Source
const CustomerStartingBalance = 100
CustomerStartingBalance is the number of points to credit a loyalty account on signup
View Source
const OrderFulfilmentWindow = 15 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func BaristaOrder ¶
func BaristaOrder(ctx workflow.Context, input *proto.BaristaOrderInput) (*proto.BaristaOrderResult, error)
func Customer ¶
func Customer(ctx workflow.Context, input *proto.CustomerInput, state *CustomerWorkflowState) error
func KitchenOrder ¶
func KitchenOrder(ctx workflow.Context, input *proto.KitchenOrderInput) (*proto.KitchenOrderResult, error)
func Order ¶
func Order(ctx workflow.Context, input *proto.OrderInput) (*proto.OrderResult, error)
Types ¶
type BaristaOrderWorfklow ¶
type BaristaOrderWorfklow struct { Status *proto.BaristaOrderStatus // contains filtered or unexported fields }
func NewBaristaOrderWorkflow ¶
func NewBaristaOrderWorkflow(name string, items []*proto.OrderLineItem) *BaristaOrderWorfklow
type CustomerWorkflowState ¶
type CustomerWorkflowState struct {
Points uint32
}
func NewCustomerWorkflowState ¶
func NewCustomerWorkflowState(state *CustomerWorkflowState) *CustomerWorkflowState
NewCustomerWorkflowState creates a workflow state
type KitchenOrderWorfklow ¶
type KitchenOrderWorfklow struct { Status *proto.KitchenOrderStatus // contains filtered or unexported fields }
func NewKitchenOrderWorkflow ¶
func NewKitchenOrderWorkflow(name string, items []*proto.OrderLineItem) *KitchenOrderWorfklow
Click to show internal directories.
Click to hide internal directories.