dynamodb

package
v0.0.0-...-1cf6fb1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DynamoDB

func DynamoDB(region, endpoint string) (*dynamodb.DynamoDB, error)

func New

func New(dynamodb *d.DynamoDB, tableName string, options ...StoreOption) eventing.Store

New returns a new event store

Types

type StoreOption

type StoreOption func(s *store)

StoreOption applies an optional configuration to the Store

func WithHashKey

func WithHashKey(hashKey string) StoreOption

WithHashKey sets the hash key

func WithRangeKey

func WithRangeKey(rangeKey string) StoreOption

WithRangeKey sets the range key

func WithRecordsPerPartition

func WithRecordsPerPartition(records int) StoreOption

WithRecordsPerPartition sets the number of records in a partition

Jump to

Keyboard shortcuts

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