Documentation ¶
Index ¶
- Variables
- func GetDynamoClient() *dynamodb.DynamoDB
- func GetItem(input *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
- func LogAwsErr(err error)
- func MarshalMap(in interface{}) (map[string]*dynamodb.AttributeValue, error)
- func PutItem(input *dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)
- func Query(input *dynamodb.QueryInput) (*dynamodb.QueryOutput, error)
- func UnmarshalListOfMaps(l []map[string]*dynamodb.AttributeValue, out interface{}) error
- func UnmarshalMap(m map[string]*dynamodb.AttributeValue, out interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DynamoClient that is dynamodb local aware or region waterfall DynamoClient = &atomicData{} // AwsSess session for non dynamo services AwsSess = &atomicData{} // DynamoPlatformTableName {APP_STAGE}-Platform DynamoPlatformTableName string )
Functions ¶
func GetDynamoClient ¶
GetDynamoClient get Dynamo DB Client TODO: should I be returning dynamodb.DynamoDB pointer here?
func GetItem ¶
func GetItem(input *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
GetItem wraps dynamo.GetItem. Gives us opportunity to react to issues and do fail-over
func MarshalMap ¶
func MarshalMap(in interface{}) (map[string]*dynamodb.AttributeValue, error)
MarshalMap is an alias for dynamodbattribute.MarshalMap It will log if there is an error in the Marshal process (which should always be logged)
func PutItem ¶
func PutItem(input *dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)
PutItem wraps dynamo.PutItem. Gives us opportunity to react to issues and do fail-over
func UnmarshalListOfMaps ¶
func UnmarshalListOfMaps(l []map[string]*dynamodb.AttributeValue, out interface{}) error
UnmarshalListOfMaps wrapper
func UnmarshalMap ¶
func UnmarshalMap(m map[string]*dynamodb.AttributeValue, out interface{}) error
UnmarshalMap is an alias for dynamodbattribute.UnmarshalMap It will log if there is an error in the Unmarshal process (which should always be logged)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.