Documentation ¶
Index ¶
- func LambdaFunctions(api *sparta.API) []*sparta.LambdaAWSInfo
- type Location
- type Store
- func (s *Store) Customers() ([]customer.Customer, error)
- func (s *Store) Init()
- func (s *Store) MakePK() string
- func (s *Store) MakeSK() string
- func (s *Store) Movies(year int, title string) ([]StoreMovie, error)
- func (s *Store) Put() error
- func (s Store) PutMovie(year int, title string, count int) error
- type StoreMovie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LambdaFunctions ¶
func LambdaFunctions(api *sparta.API) []*sparta.LambdaAWSInfo
Types ¶
type Store ¶
func (*Store) Movies ¶
func (s *Store) Movies(year int, title string) ([]StoreMovie, error)
Movies returns the store's inventory. The year and title can be used to constrain the results, but because we apply this constraint to the sort key, the year must be specified, and if title is specied, any movie titles with that prefix will be returned.
type StoreMovie ¶
type StoreMovie struct { PK string SK string Phone string // Pkey to Store Year int // Pkey to Movie Title string // Pkey to Movie Count int }
StoreMovie represents the copies of a movie in a store's inventory.
func (*StoreMovie) Init ¶
func (sm *StoreMovie) Init()
func (*StoreMovie) MakePK ¶
func (sm *StoreMovie) MakePK() string
func (*StoreMovie) MakeSK ¶
func (sm *StoreMovie) MakeSK() string
func (*StoreMovie) Put ¶
func (sm *StoreMovie) Put() error
Click to show internal directories.
Click to hide internal directories.