Documentation ¶
Index ¶
- Constants
- func New() (sdk.DocumentService, error)
- func NewWithClient(client *dynamodb.DynamoDB) (sdk.DocumentService, error)
- type DynamoDocService
- func (s *DynamoDocService) Delete(key *sdk.Key) error
- func (s *DynamoDocService) Get(key *sdk.Key) (*sdk.Document, error)
- func (s *DynamoDocService) Query(collection *sdk.Collection, expressions []sdk.QueryExpression, limit int, ...) (*sdk.QueryResult, error)
- func (s *DynamoDocService) Set(key *sdk.Key, value map[string]interface{}) error
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) Query ¶
func (s *DynamoDocService) Query(collection *sdk.Collection, expressions []sdk.QueryExpression, limit int, pagingToken map[string]string) (*sdk.QueryResult, error)
Click to show internal directories.
Click to hide internal directories.