Documentation
¶
Index ¶
- Constants
- func GetBuyers(date string) (interface{}, error)
- func GetProducts(date string) (interface{}, error)
- func GetTransactions(date string) (interface{}, error)
- func ListBuyers() (interface{}, error)
- type Buyer
- type BuyerID
- type BuyerName
- type Product
- type ProductID
- type ProductNames
- type ProductTransactions
- type QueryBuyer
- type QueryTransaction
- type SimpleBuyer
- type SimpleTransaction
- type Transaction
- type TransactionBuyer
- type TransactionProducts
Constants ¶
View Source
const BUYERS_ENDPOINT = "https://kqxty15mpg.execute-api.us-east-1.amazonaws.com/buyers?date="
View Source
const PRODUCTS_ENDPOINT = "https://kqxty15mpg.execute-api.us-east-1.amazonaws.com/products?date="
View Source
const TRANSACTIONS_ENDPOINT = "https://kqxty15mpg.execute-api.us-east-1.amazonaws.com/transactions?date="
Variables ¶
This section is empty.
Functions ¶
func GetProducts ¶
func GetTransactions ¶
func ListBuyers ¶
func ListBuyers() (interface{}, error)
Types ¶
type ProductNames ¶
type ProductNames struct {
Name string `json:"name,omitempty"`
}
type ProductTransactions ¶
type ProductTransactions struct {
Transactions []TransactionProducts `json:"transactions,omitempty"`
}
type QueryBuyer ¶
type QueryBuyer struct {
Buyer SimpleBuyer `json:"getBuyer,omitempty"`
}
type QueryTransaction ¶
type QueryTransaction struct {
Buyers []TransactionBuyer `json:"queryTransaction,omitempty"`
}
type SimpleBuyer ¶
type SimpleBuyer struct { Name string `json:"name,omitempty"` Age int `json:"age,omitempty"` Transactions []SimpleTransaction `json:"transactions,omitempty"` }
type SimpleTransaction ¶
type Transaction ¶
type TransactionBuyer ¶
type TransactionBuyer struct {
Buyer BuyerName `json:"buyer,omitempty"`
}
type TransactionProducts ¶
type TransactionProducts struct {
Products []ProductNames `json:"products,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.