ddb

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

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDbSchemer

type DynamoDbSchemer struct {
	Suffix    string
	AwsConfig aws.Config
	TestMode  bool
}

func NewDynamoDbSchemer

func NewDynamoDbSchemer(suffix string, config aws.Config, testMode bool) *DynamoDbSchemer

func (*DynamoDbSchemer) InitSchema

func (db *DynamoDbSchemer) InitSchema(ctx context.Context, tablesToCreate []Table) error

type Table

type Table struct {
	Name         string
	HashKeyName  string
	RangeKeyName string
	TtlFieldName string
	GSI          map[string]string
}

type TestContext

type TestContext struct {
	Conn   *dynamodb.Client
	Config aws.Config
	Ddb    *exec.Cmd
	Port   uint16
}

func NewDdbTestContext

func NewDdbTestContext(t *testing.T, ddbDir string, failOnErr bool) *TestContext

func (*TestContext) Close

func (ctx *TestContext) Close()

noinspection GoUnhandledErrorResult

Jump to

Keyboard shortcuts

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