dynamojournal

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package dynamojournal provides an implementation of journal.BinaryStore that persists to a DynamoDB table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBinaryStore added in v0.9.0

func NewBinaryStore(
	client *dynamodb.Client,
	table string,
	options ...Option,
) journal.BinaryStore

NewBinaryStore returns a new journal.BinaryStore that uses the given DynamoDB client to store journal records in the given table.

Types

type Option added in v0.9.0

type Option func(*store)

Option is a functional option that changes the behavior of NewBinaryStore.

func WithRequestHook added in v0.9.0

func WithRequestHook(fn func(any) []func(*dynamodb.Options)) Option

WithRequestHook is an Option that configures fn as a pre-request hook.

Before each DynamoDB API request, fn is passed a pointer to the input struct, e.g. dynamodb.GetItemInput, which it may modify in-place. It may be called with any DynamoDB request type. The types of requests used may change in any version without notice.

Any functions returned by fn will be applied to the request's options before the request is sent.

Jump to

Keyboard shortcuts

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