Documentation ¶
Index ¶
- Constants
- func ProvideDynamodDB(unmarshaller config.Unmarshaller, measures metric.Measures, logger log.Logger) (store.S, error)
- type Config
- type DynamoClient
- type MockDB
- func (s *MockDB) Delete(key model.Key) (store.OwnableItem, *dynamodb.ConsumedCapacity, error)
- func (s *MockDB) Get(key model.Key) (store.OwnableItem, *dynamodb.ConsumedCapacity, error)
- func (s *MockDB) GetAll(bucket string) (map[string]store.OwnableItem, *dynamodb.ConsumedCapacity, error)
- func (s *MockDB) Push(key model.Key, item store.OwnableItem) (*dynamodb.ConsumedCapacity, error)
Constants ¶
View Source
const (
DynamoDB = "dynamo"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DynamoClient ¶
type DynamoClient struct {
// contains filtered or unexported fields
}
func (*DynamoClient) Delete ¶
func (s *DynamoClient) Delete(key model.Key) (store.OwnableItem, error)
func (*DynamoClient) Get ¶
func (s *DynamoClient) Get(key model.Key) (store.OwnableItem, error)
func (*DynamoClient) GetAll ¶
func (s *DynamoClient) GetAll(bucket string) (map[string]store.OwnableItem, error)
func (*DynamoClient) Push ¶
func (s *DynamoClient) Push(key model.Key, item store.OwnableItem) error
type MockDB ¶ added in v0.2.1
func (*MockDB) Delete ¶ added in v0.2.1
func (s *MockDB) Delete(key model.Key) (store.OwnableItem, *dynamodb.ConsumedCapacity, error)
func (*MockDB) Get ¶ added in v0.2.1
func (s *MockDB) Get(key model.Key) (store.OwnableItem, *dynamodb.ConsumedCapacity, error)
func (*MockDB) GetAll ¶ added in v0.2.1
func (s *MockDB) GetAll(bucket string) (map[string]store.OwnableItem, *dynamodb.ConsumedCapacity, error)
func (*MockDB) Push ¶ added in v0.2.1
func (s *MockDB) Push(key model.Key, item store.OwnableItem) (*dynamodb.ConsumedCapacity, error)
Click to show internal directories.
Click to hide internal directories.