Documentation
¶
Index ¶
- type Client
- type DynamoDB
- func (d *DynamoDB) DeleteBackup(ctx context.Context, backupID threema.BackupID) error
- func (d *DynamoDB) GetBackup(ctx context.Context, backupID threema.BackupID) (*threema.BackupOutput, error)
- func (d *DynamoDB) InitializeService(sess client.ConfigProvider)
- func (d *DynamoDB) PutBackup(ctx context.Context, backupInput *threema.BackupInput) error
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.