dynamodb

package
v0.0.0-...-2c34dd0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BatchWriteLimit = 25

Variables

This section is empty.

Functions

func InterfaceSlice

func InterfaceSlice(slice interface{}) []interface{}

func New

func New(opts ...dynamodbOption) *dynamodb

func NewBatcher

func NewBatcher(batch []*awsdynamodb.WriteRequest, offset int) *batcher

Types

type Getter

type Getter interface {
	Get(ctx context.Context, tableName string, key, v interface{}) error
}

type GetterFunc

type GetterFunc func(ctx context.Context, tableName string, key, v interface{}) error

func (GetterFunc) Get

func (f GetterFunc) Get(ctx context.Context, tableName string, key, v interface{}) error

type Putter

type Putter interface {
	Put(ctx context.Context, tableName string, v interface{}) error
}

type PutterFunc

type PutterFunc func(ctx context.Context, tableName string, v interface{}) error

func (PutterFunc) Put

func (f PutterFunc) Put(ctx context.Context, tableName string, v interface{}) error

type Repo

type Repo interface {
	Getter
	Putter
}

Jump to

Keyboard shortcuts

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