repositories

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamodbBaseRepository

type DynamodbBaseRepository interface {
	FindBySimplePrimaryKey(ctx *models.LambdaContext, primaryKey models.DynamodbSimplePrimaryKey, isConsistentRead, transactional bool) (map[string]types.AttributeValue, custom_errors.GenericApplicationError)
	FindByComplexPrimaryKey(ctx *models.LambdaContext, primaryKey models.DynamodbComplexPrimaryKey, isConsistentRead, transactional bool) (map[string]types.AttributeValue, custom_errors.GenericApplicationError)
	SaveIfNotPresentWithSimplePrimaryKey(ctx *models.LambdaContext, primaryKey models.DynamodbSimplePrimaryKey, item interface{}, transactional bool) custom_errors.GenericApplicationError
	SaveIfNotPresentWithComplexPrimaryKey(ctx *models.LambdaContext, primaryKey models.DynamodbComplexPrimaryKey, item interface{}, transactional bool) custom_errors.GenericApplicationError
	Save(ctx *models.LambdaContext, item interface{}, transactional bool) custom_errors.GenericApplicationError
}

func NewDynamodbBaseRepository

func NewDynamodbBaseRepository(client models.DynamodbClientAPI, tableName string) DynamodbBaseRepository

type DynamodbTransactionManager

type DynamodbTransactionManager interface {
	StartReadTransaction(ctx *models.LambdaContext) custom_errors.GenericApplicationError
	ExecuteReadTransaction(ctx *models.LambdaContext) (map[string]types.AttributeValue, custom_errors.GenericApplicationError)
	StartWriteTransaction(ctx *models.LambdaContext) custom_errors.GenericApplicationError
	ExecuteWriteTransaction(ctx *models.LambdaContext) custom_errors.GenericApplicationError
}

func NewDynamodbTransactionManager

func NewDynamodbTransactionManager(client models.DynamodbClientAPI) DynamodbTransactionManager

Jump to

Keyboard shortcuts

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