Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey defines a type to store the integration DB session in context.Context.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger logs the db operations in a configurable file.
func GetLogger ¶
func GetLogger() *Logger
GetLogger returns the logger for db operations. If the logger is not created yet, it creates a new instance of Logger.
type Session ¶
type Session struct { AwsSession *aws_s.Session DynamoDBClient *dynamodb.DynamoDB TestTableName string }
func GetSession ¶
GetSession returns the integration DB session stored in context. Note that the context should be previously initialized with InitializeContext function.
func (*Session) CreateDynamoDBTable ¶
func (*Session) DeleteDynamoDBTable ¶
func (*Session) ListDynamoDBTables ¶
func (*Session) SetAwsDynamoClient ¶
func (s *Session) SetAwsDynamoClient()
Click to show internal directories.
Click to hide internal directories.