awsx

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decorate

func Decorate[In any](
	in *In,
	dec func(*In) []func(*dynamodb.Options),
) []func(*dynamodb.Options)

Decorate mutates an input value in-place and returns any options that should be used when sending the request.

func Do

func Do[In, Out any](
	ctx context.Context,
	fn func(context.Context, *In, ...func(*dynamodb.Options)) (Out, error),
	dec func(*In) []func(*dynamodb.Options),
	in *In,
	options ...func(*dynamodb.Options),
) (out Out, err error)

Do executes an AWS API request.

fn is a function that is called to execute the request, typically a method on a *dynamodb.DynamoDB client.

dec is a decorator function that mutates the input value before it is sent and returns any options that should be used when sending the request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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