Documentation ¶
Overview ¶
Package dynamokv provides a kv.BinaryStore implementation 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
NewBinaryStore returns a new kv.BinaryStore that uses the given DynamoDB client to store key/value pairs 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
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.