Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalJSONGZ ¶ added in v1.59.0
func UnmarshalJSONGZ ¶ added in v1.59.0
Types ¶
type Marshaler ¶ added in v1.59.0
type Marshaler interface {
MarshalDynamo() (map[string]types.AttributeValue, error)
}
type Service ¶
Service is simple abstraction layer to work with a DynamoDB-compatible database
func NewService ¶
NewService creates a new dynamodb service with the given credentials and configuration
func (*Service) GetItem ¶ added in v1.59.0
func (s *Service) GetItem(ctx context.Context, table string, key map[string]types.AttributeValue, dst any) error
GetItem retrieves an item from the given table
type Unmarshaler ¶ added in v1.59.0
type Unmarshaler interface {
UnmarshalDynamo(map[string]types.AttributeValue) error
}
Click to show internal directories.
Click to hide internal directories.