dynamodb

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *dynamodb.DynamoDB

New creates and returns a new session connection to DynamoDB

Types

type API

type API struct {
	Client dynamodbiface.DynamoDBAPI
}

API wraps a DynamoDB client interface

func (*API) IsEnabled

func (a *API) IsEnabled() bool

IsEnabled checks whether a new client has been set

func (*API) PutItem

func (a *API) PutItem(ctx aws.Context, table string, item map[string]*dynamodb.AttributeValue) (resp *dynamodb.PutItemOutput, err error)

PutItem is a convenience wrapper for executing the PutItem API on DynamoDB.table

func (*API) Query

func (a *API) Query(ctx aws.Context, table, partitionKey, sortKey, keyConditionExpression string, limit int64, scanIndexForward bool) (resp *dynamodb.QueryOutput, err error)

Query is a convenience wrapper for querying a DynamoDB table

func (*API) Setup

func (a *API) Setup()

Setup creates a DynamoDB client and sets the DynamoDB.stream

Jump to

Keyboard shortcuts

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