Documentation ¶
Overview ¶
Package datastore contains the interfaces that the Cart service in the ACME Serverless Fitness Shop needs to store and retrieve data. In order to add a new service, the Manager interface needs to be implemented.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { GetItems(userID string) (acmeserverless.CartItems, error) AddItem(userID string, i acmeserverless.CartItem) error AllCarts() (acmeserverless.Carts, error) ClearCart(userID string) error StoreItems(userID string, i acmeserverless.CartItems) error ItemsInCart(userID string) (int64, error) ValueInCart(userID string) (float64, error) }
Manager is the interface that describes the methods the data store needs to implement to be able to work with the ACME Serverless Fitness Shop.
Directories ¶
Path | Synopsis |
---|---|
Package dynamodb leverages Amazon DynamoDB, a key-value and document database that delivers single-digit millisecond performance at any scale to store data.
|
Package dynamodb leverages Amazon DynamoDB, a key-value and document database that delivers single-digit millisecond performance at any scale to store data. |
Package mongodb leverages cross-platform document-oriented database program.
|
Package mongodb leverages cross-platform document-oriented database program. |
Click to show internal directories.
Click to hide internal directories.