Documentation
¶
Index ¶
- type DynamoDBStore
- func (d *DynamoDBStore) All(ctx context.Context, next *string) (types.ProductRange, error)
- func (d *DynamoDBStore) Delete(ctx context.Context, id string) error
- func (d *DynamoDBStore) Get(ctx context.Context, id string) (*types.Product, error)
- func (d *DynamoDBStore) Put(ctx context.Context, product types.Product) error
- type MemoryStore
- func (m *MemoryStore) All(ctx context.Context, next *string) (types.ProductRange, error)
- func (m *MemoryStore) Delete(ctx context.Context, id string) error
- func (m *MemoryStore) Get(ctx context.Context, id string) (*types.Product, error)
- func (m *MemoryStore) Put(ctx context.Context, p types.Product) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoDBStore ¶
type DynamoDBStore struct {
// contains filtered or unexported fields
}
func NewDynamoDBStore ¶
func NewDynamoDBStore(ctx context.Context, tableName string) *DynamoDBStore
func (*DynamoDBStore) All ¶
func (d *DynamoDBStore) All(ctx context.Context, next *string) (types.ProductRange, error)
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) All ¶
func (m *MemoryStore) All(ctx context.Context, next *string) (types.ProductRange, error)
Click to show internal directories.
Click to hide internal directories.