workflows

package
v0.0.0-...-fa5e95f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 Customer

func Customer(ctx workflow.Context, input *proto.CustomerInput, state *CustomerWorkflowState) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳