File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
pkg/gofr/datasource/kv-store/dynamodb Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,20 @@ Import the package and create the client instance:
10
10
import (
11
11
" context"
12
12
13
- " gofr.dev/pkg/gofr/datasource/kv/dynamo " // Adjust path as needed
13
+ " gofr.dev/pkg/gofr/datasource/kv/dynamodb " // Adjust path as needed
14
14
)
15
15
16
16
func main () {
17
- configs := dynamo .Configs {
17
+ configs := dynamodb .Configs {
18
18
Table: " your-table-name" ,
19
19
Region: " us-east-1" ,
20
20
Endpoint: " " , // Leave empty for real AWS; set for local (e.g., "http://localhost:8000")
21
21
PartitionKeyName: " pk" , // Default is "pk" if not specified
22
22
}
23
23
24
- client := dynamo .New (configs)
25
- client.UseLogger (yourLogger) // Implement dynamo .Logger interface
26
- client.UseMetrics (yourMetrics) // Implement dynamo .Metrics interface
24
+ client := dynamodb .New (configs)
25
+ client.UseLogger (yourLogger) // Implement dynamodb .Logger interface
26
+ client.UseMetrics (yourMetrics) // Implement dynamodb .Metrics interface
27
27
// client.UseTracer(yourTracer) // Optional: trace.Tracer
28
28
29
29
if err := client.Connect (); err != nil {
You can’t perform that action at this time.
0 commit comments