records

package
v0.0.0-...-39b19eb Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDynDBSvc

func CreateDynDBSvc() *dynamodb.DynamoDB

CreateDynDBSvc ...

func GenericRecordWriter

func GenericRecordWriter(object interface{}, objectType reflect.Type, tableName string, svc *dynamodb.DynamoDB) error

GenericRecordWriter ...

func RecordLookup

func RecordLookup(table string, attrToGet string, conditionLeft string, conditionRight string) (*dynamodb.QueryOutput, error)

RecordLookup ...

func WriteRecord

func WriteRecord(object interface{}, tableName string, svc *dynamodb.DynamoDB) error

WriteRecord ...

Types

type AnyRecord

type AnyRecord interface {
	// contains filtered or unexported methods
}

AnyRecord ...

type Configuration

type Configuration struct {
	Region     string
	AWSProfile string
	TableName  string
}

Configuration file structure

type GenericRecord

type GenericRecord struct {
	Data AnyRecord `json:"data"`
}

GenericRecord ...

Jump to

Keyboard shortcuts

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