dynamodb_service

package
v0.3.2 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

View Source
const ATTRIB_PK = "_pk"
View Source
const ATTRIB_SK = "_sk"

Variables

This section is empty.

Functions

func New

func New() (sdk.DocumentService, error)

New - Create a new DynamoDB key value plugin implementation

func NewWithClient

func NewWithClient(client *dynamodb.DynamoDB) (sdk.DocumentService, error)

NewWithClient - Mainly used for testing

Types

type DynamoDocService

type DynamoDocService struct {
	sdk.UnimplementedDocumentPlugin
	// contains filtered or unexported fields
}

DynamoDocService - AWS DynamoDB AWS Nitric Document service

func (*DynamoDocService) Delete

func (s *DynamoDocService) Delete(key *sdk.Key) error

func (*DynamoDocService) Get

func (s *DynamoDocService) Get(key *sdk.Key) (*sdk.Document, error)

func (*DynamoDocService) Query

func (s *DynamoDocService) Query(collection *sdk.Collection, expressions []sdk.QueryExpression, limit int, pagingToken map[string]string) (*sdk.QueryResult, error)

func (*DynamoDocService) Set

func (s *DynamoDocService) Set(key *sdk.Key, value map[string]interface{}) error

Jump to

Keyboard shortcuts

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