Documentation
¶
Index ¶
- Variables
- func AddOrder(order Order) (orderId string)
- func AddOrderToEventHub(orderId string, orderSource string)
- func AddOrderToEventHubAMQPNative(orderId string, orderSource string)
- func AddOrderToMongoDB(order Order) (orderId string)
- func AddOrderToRabbitMQ(orderId string, orderSource string)
- type Order
Constants ¶
This section is empty.
Variables ¶
View Source
var (
OrderList map[string]*Order
)
The order map
Functions ¶
func AddOrderToEventHub ¶
AddOrderToEventHub adds it to an event hub
func AddOrderToEventHubAMQPNative ¶
AddOrderToEventHubAMQPNative adds it to an event hub
func AddOrderToMongoDB ¶
AddOrderToMongoDB Add the order to MondoDB
func AddOrderToRabbitMQ ¶
Types ¶
type Order ¶
type Order struct {
ID string `required:"false" description:"CosmoDB ID - will be autogenerated"`
EmailAddress string `required:"true" description:"Email address of the customer"`
PreferredLanguage string `required:"false" description:"Preferred Language of the customer"`
Product string `required:"false" description:"Product ordered by the customer"`
Total float64 `required:"false" description:"Order total"`
Source string `required:"false" description:"Source backend e.g. App Service, Container instance, K8 cluster etc"`
Status string `required:"true" description:"Order Status"`
}
Order represents the order json
Click to show internal directories.
Click to hide internal directories.