dynamo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dynamo

type Dynamo struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Dynamo, error)

New creates a new ArgusDynamodb instance

func (*Dynamo) Create

func (d *Dynamo) Create(ctx context.Context, table *dynamodb.CreateTableInput) error

Create creates a new DynamoDB table, or replaces an existing table.

type Option

type Option interface {
	// contains filtered or unexported methods
}

func Credentials

func Credentials(accessKey, secretKey string) Option

Credentials sets the access and secret keys for the dynamo package.

func Endpoint

func Endpoint(endpoint string) Option

Endpoint sets the endpoint for the dynamo package.

func GeneralDelay

func GeneralDelay(generalDelay time.Duration) Option

GeneralDelay sets the general delay between actions.

The default is 10 milliseconds.

func HumanTableName

func HumanTableName(humanTableName string) Option

HumanTableName sets the human readable table name.

func MaxDynamoActionWait

func MaxDynamoActionWait(max time.Duration) Option

MaxDynamoActionWait sets the maximum time to wait for an action to complete.

The default is 5 seconds.

func MaxDynamoResponseWait

func MaxDynamoResponseWait(max time.Duration) Option

MaxDynamoResponseWait sets the maximum time to wait for a response from DynamoDB.

The default is 20 microseconds.

func MaxWaitForDynamo

func MaxWaitForDynamo(max time.Duration) Option

MaxWaitForDynamo sets the maximum time to wait for DynamoDB to be ready.

The default is 10 seconds.

func Region

func Region(region string) Option

Region sets the region for the dynamo package.

func Stdout

func Stdout(stdout io.Writer) Option

Stdout sets the writer for stdout.

func Verbosity

func Verbosity(verbosity int) Option

Verbosity sets the verbosity level for the dynamo package.

Jump to

Keyboard shortcuts

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