dynamodb_service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (sdk.KeyValueService, error)

Create a New DynamoDB key value plugin implementation

func NewWithClient

func NewWithClient(client dynamodbiface.DynamoDBAPI) (sdk.KeyValueService, error)

Mainly used for mock testing to inject a mock client into this plugin

Types

type DynamoDbKVService

type DynamoDbKVService struct {
	sdk.UnimplementedKeyValuePlugin
	// contains filtered or unexported fields
}

AWS DynamoDB AWS Nitric Key Value service

func (*DynamoDbKVService) Delete

func (s *DynamoDbKVService) Delete(collection string, key string) error

func (*DynamoDbKVService) Get

func (s *DynamoDbKVService) Get(collection string, key string) (map[string]interface{}, error)

func (*DynamoDbKVService) Put

func (s *DynamoDbKVService) Put(collection string, key string, value map[string]interface{}) error

type NitricKVDocument

type NitricKVDocument struct {
	Key   string
	Value map[string]interface{}
}

NitricKVDocument - represents the structure of a Key Value record when stored in DynamoDB

Jump to

Keyboard shortcuts

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