dynamodb

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteItemAPI

type DeleteItemAPI interface {
	DeleteItem(key PrimaryKey) (*dynamodb.DeleteItemOutput, error)
}

type DynamoDBClient

func GetClient

func GetClient(inputTableName string, region string) DynamoDBClient

func GetClientWithTimeout

func GetClientWithTimeout(inputTableName string, region string, timeout time.Duration) DynamoDBClient

type GetItemAPI

type GetItemAPI interface {
	GetItem(key PrimaryKey, consistentRead bool) (*dynamodb.GetItemOutput, error)
}

type PrimaryKey

type PrimaryKey struct {
	PartitionKey string `dynamodbav:"PK"`
	SortKey      string `dynamodbav:"SK"`
}

type PutItemAPI

type PutItemAPI interface {
	PutItem(item interface{}) (*dynamodb.PutItemOutput, error)
}

type QueryAPI

type QueryAPI interface {
	Query(input *dynamodb.QueryInput) (*dynamodb.QueryOutput, error)
}

type ScanAPI

type ScanAPI interface {
	Scan(in *dynamodb.ScanInput) (*dynamodb.ScanOutput, error)
}

type TransactWriteItemsAPI

type TransactWriteItemsAPI interface {
	TransactWriteItems(items []types.TransactWriteItem, idempotencyToken *string) (*dynamodb.TransactWriteItemsOutput, error)
	CreateTransactPutItem(item interface{}) (*types.TransactWriteItem, error)
	CreateTransactUpdateItem(key PrimaryKey, item interface{}) (*types.TransactWriteItem, error)
	CreateTransactDeleteItem(key PrimaryKey) (*types.TransactWriteItem, error)
}

type UpdateItemAPI

type UpdateItemAPI interface {
	UpdateItem(key PrimaryKey, item interface{}) (*dynamodb.UpdateItemOutput, error)
}

Jump to

Keyboard shortcuts

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