@@ -33,7 +33,12 @@ import (
3333 * our workshop using the encryption client.
3434 */
3535
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 ) {
3742 // 1. Create Keystore and branch key.
3843 // These are the same constructions as in the Basic examples, which describe this in more detail.
3944 cfg , err := config .LoadDefaultConfig (ctx )
@@ -64,7 +69,7 @@ func SetupBeaconConfig(ctx context.Context, ddbTableName, branchKeyId, branchKey
6469 // For this example, we use a standard beacon length of 4.
6570 // The BasicSearchableEncryptionExample gives a more thorough consideration of beacon length.
6671 // 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.
6873 standardBeaconList := []dbesdkdynamodbencryptiontypes.StandardBeacon {
6974 {Name : "EmployeeID" , Length : 4 },
7075 {Name : "TicketNumber" , Length : 4 },
@@ -109,7 +114,7 @@ func SetupBeaconConfig(ctx context.Context, ddbTableName, branchKeyId, branchKey
109114 // These are unencrypted attributes we would like to use in beacon queries.
110115 // In this example, all of these represent dates or times.
111116 // 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.
113118 signedPartList := []dbesdkdynamodbencryptiontypes.SignedPart {
114119 {Name : "TicketModTime" , Prefix : "M-" },
115120 {Name : "MeetingStart" , Prefix : "MS-" },
0 commit comments