load

package
v0.0.0-...-8e99575 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithProjection

func WithProjection(name string, names ...string) func(*Opts)

WithProjection adds a projection expression.

func WithTableName

func WithTableName(tableName string) func(*Opts)

WithTableName changes the table name in Opts.Input.

Types

type Opts

type Opts struct {
	Item       model.Item
	Input      *dynamodb.GetItemInput
	Projection *expression.ProjectionBuilder
}

Opts provides customisation to the dynamodb.GetItemInput made with github.com/nguyengg/golambda/ddb.Wrapper.Load.

Opts.Input is guaranteed to exist when passed into the first modifier. Opts.Item is the original reference item. Changes to Opts.Item don't automatically update Opts.Input. Changes to Opts.Projection will affect the final Opts.Input.

Jump to

Keyboard shortcuts

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