dynamodb

package
v0.0.0-...-12a582f Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoReader

type DynamoReader struct {
	// contains filtered or unexported fields
}

reader of objects to dynamo

func NewDynamoReader

func NewDynamoReader(tableName string) *DynamoReader

NewDynamoReader returns a new, default value DynamoReader

func (*DynamoReader) GetByID

func (dr *DynamoReader) GetByID(id string, sort string) (*dynamodb.GetItemOutput, error)

type DynamoWriter

type DynamoWriter struct {
	// contains filtered or unexported fields
}

DynamoWriter is a single objective writer of objects to dynamo

func NewDynamoWriter

func NewDynamoWriter(tableName string) *DynamoWriter

NewDynamoWriter returns a new, default value DynamoWriter

func (*DynamoWriter) Delete

func (d *DynamoWriter) Delete(entity interface{}) error

Delete removes the item from the given table

func (*DynamoWriter) Write

func (d *DynamoWriter) Write(entity interface{}) error

func (*DynamoWriter) WriteJson

func (d *DynamoWriter) WriteJson(entity interface{}) error

Jump to

Keyboard shortcuts

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