dynamodb

package
v0.0.0-...-c4f4ec1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// PutItemWithContext puts an item to DynamoDB with context.
	PutItemWithContext(ctx aws.Context, input *dynamodb.PutItemInput, opts ...request.Option) (*dynamodb.PutItemOutput, error)
	// GetItemWithContext gets an item from DynamoDB with context.
	GetItemWithContext(ctx aws.Context, input *dynamodb.GetItemInput, opts ...request.Option) (*dynamodb.GetItemOutput, error)
	// DeleteItemWithContext deletes an item from DynamoDB with context.
	DeleteItemWithContext(ctx aws.Context, input *dynamodb.DeleteItemInput, opts ...request.Option) (*dynamodb.DeleteItemOutput, error)
}

Client defines a DynamoDB client interface.

type DynamoDB

type DynamoDB struct {
	Table string `mapstructure:"table"`
	// contains filtered or unexported fields
}

DynamoDB defines the configuration of the DynamoDB storage backend type.

func (*DynamoDB) DeleteBackup

func (d *DynamoDB) DeleteBackup(ctx context.Context, backupID threema.BackupID) error

DeleteBackup deletes a backup from DynamoDB.

func (*DynamoDB) GetBackup

func (d *DynamoDB) GetBackup(ctx context.Context, backupID threema.BackupID) (*threema.BackupOutput, error)

GetBackup returns a backup from DynamoDB.

func (*DynamoDB) InitializeService

func (d *DynamoDB) InitializeService(sess client.ConfigProvider)

InitializeService initializes a DynamoDB service for a specific session.

func (*DynamoDB) PutBackup

func (d *DynamoDB) PutBackup(ctx context.Context, backupInput *threema.BackupInput) error

PutBackup stores a backup to DynamoDB.

Jump to

Keyboard shortcuts

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