dynamodb

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DynamoDB = "dynamo"
)

Variables

This section is empty.

Functions

func ProvideDynamodDB

func ProvideDynamodDB(unmarshaller config.Unmarshaller, measures metric.Measures, logger log.Logger) (store.S, error)

Types

type Config

type Config struct {
	Table      string
	Endpoint   string
	Region     string
	MaxRetries int
	AccessKey  string
	SecretKey  string
}

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

type MockDB struct {
	mock.Mock
}

func (*MockDB) Delete added in v0.2.1

func (*MockDB) Get added in v0.2.1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL