aws

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

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

Go to latest
Published: Aug 5, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

README

AWS Utility

Abstraction for AWS SDK

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDB

type DynamoDB struct {
	// contains filtered or unexported fields
}

DynamoDB aggregator

func NewDynamoDB

func NewDynamoDB(region, endpoint, table string) (ddb *DynamoDB, err error)

NewDynamoDB - creates new dynamodb instance with connection

func (*DynamoDB) Get

func (ddb *DynamoDB) Get(key string, castTo interface{}) error

Get an item

func (*DynamoDB) List

func (ddb *DynamoDB) List(field string, value string, castTo interface{}) error

List gets a collection of resources

func (*DynamoDB) Store

func (ddb *DynamoDB) Store(item interface{}) error

Store an Item

func (*DynamoDB) TxGet

func (ddb *DynamoDB) TxGet(keys []string, castTo interface{}) error

TxGet gets items with transaction

func (*DynamoDB) TxStore

func (ddb *DynamoDB) TxStore(item interface{}) error

TxStore writes an item with transaction

type DynamoDBService

type DynamoDBService interface {
	List(field string, value string, castTo interface{}) error
	Get(key string, castTo interface{}) error
	Store(item interface{}) error
	TxStore(item interface{}) error
	TxGet(keys []string, castTo interface{}) error
}

DynamoDBService expose

type DynamoDBTableAttribute

type DynamoDBTableAttribute struct {
	Name    string
	Type    string
	KeyType string
}

DynamoDBTableAttribute composing attributes and elements

Jump to

Keyboard shortcuts

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