ddb

package
v0.0.0-...-4f40efb Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

code for accessing dynamo db.

Index

Constants

View Source
const (
	S
	N
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDB

type DynamoDB struct {
	Table string
	Auth  aws.Auth
	Strat goutil.RetryStrategy
}

func GetDefault

func GetDefault(table string, a aws.Auth) DynamoDB

func (DynamoDB) DeleteItem

func (d DynamoDB) DeleteItem(key string) error

func (DynamoDB) GetItem

func (d DynamoDB) GetItem(key string) (map[string]Value, bool, error)

three return values: item, whether or not item was found, and error if any

func (DynamoDB) IncrementItem

func (d DynamoDB) IncrementItem(key, attr string, v float64) error

func (DynamoDB) PutItem

func (d DynamoDB) PutItem(item map[string]Value) error

func (DynamoDB) UpdateItem

func (d DynamoDB) UpdateItem(key, attr string, v Value) error

type Value

type Value struct {
	Type ValueType
	S    string
	N    float64
}

func NV

func NV(n float64) Value

func SV

func SV(s string) Value

func (Value) String

func (v Value) String() string

type ValueType

type ValueType byte

Jump to

Keyboard shortcuts

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