db

package
v0.0.0-...-3f72e9c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 7 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 NewDynamo

func NewDynamo(tableName string, options ...DynamoDBOption) (*Dynamo, error)

func (*Dynamo) Get

func (db *Dynamo) Get(id string) (*domain.Event, error)

func (*Dynamo) Save

func (db *Dynamo) Save(item domain.Event) error

type DynamoDBOption

type DynamoDBOption func(client *Dynamo)

func WithDynamoLocalstackSession

func WithDynamoLocalstackSession() DynamoDBOption

func WithDynamoRegion

func WithDynamoRegion(region string) DynamoDBOption

Jump to

Keyboard shortcuts

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