Discover Packages
github.com/prasannasgm/prasannacaptureorders
models
package
Version:
v0.0.0-...-464eb01
Opens a new window with list of versions in this module.
Published: Oct 25, 2019
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
AddOrderToAMQP Adds the order to AMQP (Service Bus Queue)
AddOrderToMongoDB Adds the order to MongoDB/CosmosDB
func GetNumberOfOrdersInDB() (int , error )
GetNumberOfOrdersInDB
ReadMongoPasswordFromSecret reads the mongo password from the flexvol mount if present
type Order struct {
ID bson .ObjectId `json:"id" bson:"_id,omitempty"`
EmailAddress string `json:"emailAddress"`
Product string `json:"product"`
Total float64 `json:"total"`
Status string `json:"status"`
}
Order represents the order json
Source Files
¶
Click to show internal directories.
Click to hide internal directories.