mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 08:01:16 +00:00
17 lines
290 B
Go
17 lines
290 B
Go
package dynamo
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/aws/aws-sdk-go-v2/aws"
|
|
"github.com/aws/aws-sdk-go-v2/service/dynamodb"
|
|
)
|
|
|
|
type Client struct {
|
|
*dynamodb.Client
|
|
}
|
|
|
|
func NewClient(ctx context.Context, cfg aws.Config) (*Client, error) {
|
|
return &Client{dynamodb.NewFromConfig(cfg)}, nil
|
|
}
|