dynamodb

package
v0.0.0-...-354f3a1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUsersReader

func NewUsersReader(idm entity.IDManager, client DynamoDBClient, mapper AttributeValueMapper) entity.UsersReader

func NewUsersWriter

func NewUsersWriter(idm entity.IDManager, client DynamoDBClient, mapper AttributeValueMapper) entity.UsersWriter

Types

type AttributeValueMapper

type AttributeValueMapper interface {
	MarshalMap(in interface{}) (map[string]*dynamodb.AttributeValue, error)
	UnmarshalMap(m map[string]*dynamodb.AttributeValue, out interface{}) error
}

* AttributeValueMapper *

type DynamoDBClient

type DynamoDBClient interface {
	GetItem(input dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
	PutItem(input dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)
	DeleteItem(input dynamodb.DeleteItemInput) (*dynamodb.DeleteItemOutput, error)
	Query(input dynamodb.QueryInput) (*dynamodb.QueryOutput, error)
	Scan(input dynamodb.ScanInput) (*dynamodb.ScanOutput, error)
}

* DynamoDBClient *

type DynamoDBCredentials

type DynamoDBCredentials interface {
	AccessKeyID() string
	SecretAccessKey() string
}

* DynamoDB Credentials *

Jump to

Keyboard shortcuts

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