Generate key to store in map based with a format "tableName+"-"+hashKeyValue+"-"+sortKeyValue"
(dynamodbConfig DynamodbConfiguration)
| 111 | |
| 112 | // Generate key to store in map based with a format "tableName+"-"+hashKeyValue+"-"+sortKeyValue" |
| 113 | func GetKey(dynamodbConfig DynamodbConfiguration) string { |
| 114 | var key = dynamodbConfig.Table + "-" + dynamodbConfig.HashKeyValue |
| 115 | if dynamodbConfig.SortKey != "" { |
| 116 | key += "-" + dynamodbConfig.SortKeyValue |
| 117 | } |
| 118 | return key |
| 119 | } |
| 120 | |
| 121 | // Get Dynamodb to read data |
| 122 | func GetDynamoDbClient() *dynamodb.DynamoDB { |
no outgoing calls
no test coverage detected