dynamodb

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTableName

func GetTableName() *string

GetTableName returns the name of the table being used to store entries as a pointer, for use in aws ddb calls.

The table name is retrieved from the os environment variable "API_TABLE_NAME" by default, but can be overridden using the SetTableName function.

func NewRepository

func NewRepository() (repo datastore.Repository, err error)

NewRepository creates a new Repository from the default AWS session

func NewRepositoryFromSession

func NewRepositoryFromSession(cfg aws.Config) datastore.Repository

NewRepositoryFromSession creates a new Repository from the passed aws session.Session struct

func SetTableName

func SetTableName(newTableName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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