@@ -33,7 +33,12 @@ import (
33
33
* our workshop using the encryption client.
34
34
*/
35
35
36
- func SetupBeaconConfig (ctx context.Context , ddbTableName , branchKeyId , branchKeyWrappingKmsKeyArn , branchKeyDdbTableName string ) (* dynamodb.Client , error ) {
36
+ func SetupBeaconConfig (
37
+ ctx context.Context ,
38
+ ddbTableName ,
39
+ branchKeyId ,
40
+ branchKeyWrappingKmsKeyArn ,
41
+ branchKeyDdbTableName string ) (* dynamodb.Client , error ) {
37
42
// 1. Create Keystore and branch key.
38
43
// These are the same constructions as in the Basic examples, which describe this in more detail.
39
44
cfg , err := config .LoadDefaultConfig (ctx )
@@ -64,7 +69,7 @@ func SetupBeaconConfig(ctx context.Context, ddbTableName, branchKeyId, branchKey
64
69
// For this example, we use a standard beacon length of 4.
65
70
// The BasicSearchableEncryptionExample gives a more thorough consideration of beacon length.
66
71
// For production applications, one should always exercise rigor when deciding beacon length, including
67
- // examining population size and considering performance.
72
+ // examining population size and considering performance.
68
73
standardBeaconList := []dbesdkdynamodbencryptiontypes.StandardBeacon {
69
74
{Name : "EmployeeID" , Length : 4 },
70
75
{Name : "TicketNumber" , Length : 4 },
@@ -109,7 +114,7 @@ func SetupBeaconConfig(ctx context.Context, ddbTableName, branchKeyId, branchKey
109
114
// These are unencrypted attributes we would like to use in beacon queries.
110
115
// In this example, all of these represent dates or times.
111
116
// Keeping these attributes unencrypted allows us to use them in comparison-based queries. If a signed
112
- // part is the first part in a compound beacon, then that part can be used in comparison for sorting.
117
+ // part is the first part in a compound beacon, then that part can be used in comparison for sorting.
113
118
signedPartList := []dbesdkdynamodbencryptiontypes.SignedPart {
114
119
{Name : "TicketModTime" , Prefix : "M-" },
115
120
{Name : "MeetingStart" , Prefix : "MS-" },
0 commit comments