utils

package
v0.0.0-...-deeb67b Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchDeleteOrder

func BatchDeleteOrder(orders []model.OrderInfo, tableName string, client *dynamodb.DynamoDB) error

BatchDeleteOrder will delete all orders from the table given

func BatchDeleteStock

func BatchDeleteStock(stocks []model.StockInfo, tableName string, client *dynamodb.DynamoDB) error

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 Unmarshal

func Unmarshal(fileName string, data interface{}) error

func UploadFileToS3

func UploadFileToS3(file *os.File, awsSession *session.Session) (*s3manager.UploadOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL