Documentation ¶
Index ¶
- func BatchDeleteOrder(orders []model.OrderInfo, tableName string, client *dynamodb.DynamoDB) error
- func BatchDeleteStock(stocks []model.StockInfo, tableName string, client *dynamodb.DynamoDB) error
- func BatchQueryOrder(tableName string, SupplierID string, filter string, client *dynamodb.DynamoDB) (*dynamodb.QueryOutput, error)
- func BatchQueryStock(tableName string, SupplierID string, client *dynamodb.DynamoDB) (*dynamodb.QueryOutput, error)
- func Unmarshal(fileName string, data interface{}) error
- func UploadFileToS3(file *os.File, awsSession *session.Session) (*s3manager.UploadOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchDeleteOrder ¶
BatchDeleteOrder will delete all orders from the table given
func BatchDeleteStock ¶
func BatchQueryOrder ¶
func BatchQueryOrder(tableName string, SupplierID string, filter string, client *dynamodb.DynamoDB) (*dynamodb.QueryOutput, error)
BatchQuery will query a table for all the items that have the supplierID passed
func BatchQueryStock ¶
func BatchQueryStock(tableName string, SupplierID string, client *dynamodb.DynamoDB) (*dynamodb.QueryOutput, error)
Creating the query parameters which will get the test stock from dynamodb
func UploadFileToS3 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.