dynagodb

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: MIT Imports: 7 Imported by: 0

README

DynagoDB

Abstractions to facilitate the creation of resources in DynamoDB

Warning: the API of this pre-1.0 library is unstable. It is recommended to use dependency management.

Documentation

Overview

Package dynamodb provides a library that uses DynamoDB to store your go types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalStreamImage

func UnmarshalStreamImage(attribute map[string]events.DynamoDBAttributeValue, out interface{}) error

UnmarshalStreamImage converts events.DynamoDBAttributeValue to struct HT https://stackoverflow.com/questions/49129534/unmarshal-mapstringdynamodbattributevalue-into-a-struct

Types

type Backend

type Backend struct {
	Service   dynamodbiface.DynamoDBAPI
	TableName *string
}

Backend provides a connection to dynamo

func New

func New(t string) *Backend

New returns a pointer to a Backend

func (*Backend) PutItem

func (b *Backend) PutItem(v interface{}) error

PutItem stores your go object in the table

Jump to

Keyboard shortcuts

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