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.
Click to show internal directories.
Click to hide internal directories.