types

package
v0.0.0-...-3b54d80 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilValue     = errors.New("dynamodb: value is nil")
	ErrValuePointer = errors.New("dynamodb: value is not a pointer")
	ErrValueStruct  = errors.New("dynamodb: value is not a struct")
)

Functions

func MakeSlice

func MakeSlice(a []AttributeValue, v interface{}) (interface{}, error)

func Unmarshal

func Unmarshal(a AttributeValue, v interface{}) error

Unmarshall AttributeValue into struct.

Types

type AttributeDefinition

type AttributeDefinition struct {
	AttributeName string
	AttributeType string
}

type AttributeDefinitions

type AttributeDefinitions []AttributeDefinition

func Definitions

func Definitions(v interface{}) (d AttributeDefinitions, err error)

type AttributeValue

type AttributeValue map[string]map[string]interface{}

func Marshal

func Marshal(v interface{}, keys bool) (AttributeValue, error)

Marshall struct into AttributeValue.

type DeleteRequest

type DeleteRequest struct {
	Key AttributeValue
}

type KeySchema

type KeySchema []KeySchemaElement

func Keys

func Keys(v interface{}) (k KeySchema, err error)

type KeySchemaElement

type KeySchemaElement struct {
	AttributeName string
	KeyType       string
}

type ProvisionedThroughput

type ProvisionedThroughput struct {
	ReadCapacityUnits  int
	WriteCapacityUnits int
}

type PutRequest

type PutRequest struct {
	Item AttributeValue
}

type Table

type Table struct {
	AttributeDefinitions  AttributeDefinitions
	CreationDateTime      float64
	ItemCount             int
	KeySchema             KeySchema
	ProvisionedThroughput ProvisionedThroughput
	TableName             string
	TableSizeBytes        int
	TableStatus           string
}

type WriteRequest

type WriteRequest struct {
	PutRequest    *PutRequest
	DeleteRequest *DeleteRequest
}

type WriteRequests

type WriteRequests map[string][]*WriteRequest

Jump to

Keyboard shortcuts

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