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:
1010import (
1111 " context"
1212
13- " gofr.dev/pkg/gofr/datasource/kv/dynamo " // Adjust path as needed
13+ " gofr.dev/pkg/gofr/datasource/kv/dynamodb " // Adjust path as needed
1414)
1515
1616func main () {
17- configs := dynamo .Configs {
17+ configs := dynamodb .Configs {
1818 Table: " your-table-name" ,
1919 Region: " us-east-1" ,
2020 Endpoint: " " , // Leave empty for real AWS; set for local (e.g., "http://localhost:8000")
2121 PartitionKeyName: " pk" , // Default is "pk" if not specified
2222 }
2323
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
2727 // client.UseTracer(yourTracer) // Optional: trace.Tracer
2828
2929 if err := client.Connect (); err != nil {
You can’t perform that action at this time.
0 commit comments