Documentation ¶
Index ¶
- func MarshalItem(v interface{}) (map[string]types.AttributeValue, error)
- func Unmarshal(av types.AttributeValue, out interface{}) error
- func UnmarshalAppend(item map[string]types.AttributeValue, out interface{}) error
- func UnmarshalItem(item map[string]types.AttributeValue, out interface{}) error
- type ItemMarshaler
- type ItemUnmarshaler
- type Marshaler
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalItem ¶
func MarshalItem(v interface{}) (map[string]types.AttributeValue, error)
MarshalItem converts the given struct into a DynamoDB item
func Unmarshal ¶
func Unmarshal(av types.AttributeValue, out interface{}) error
func UnmarshalAppend ¶
func UnmarshalAppend(item map[string]types.AttributeValue, out interface{}) error
func UnmarshalItem ¶
func UnmarshalItem(item map[string]types.AttributeValue, out interface{}) error
Types ¶
type ItemMarshaler ¶
type ItemMarshaler interface {
MarshalDynamoDBItem() (map[string]types.AttributeValue, error)
}
ItemMarshaler is the interface implemented by objects that can marshal themselves into an Item (a map of strings to AttributeValues)
type ItemUnmarshaler ¶
type ItemUnmarshaler interface {
UnmarshalDynamoDBItem(item map[string]types.AttributeValue) error
}
ItemUnmarshaler is the interface implemented by objects that can unmarshal an Item (a map of strings to AttributeValues) into themselves
type Marshaler ¶
type Marshaler interface {
MarshalDynamoDB() (types.AttributeValue, error)
}
Marshaler is the interface implemented by objects that can marshal themselves into an AttributeValue
type Unmarshaler ¶
type Unmarshaler interface {
UnmarshalDynamoDB(av types.AttributeValue) error
}
Unmarshaler is the interface implemented by objects that can unmarshal an AttributeValue into themselves
Click to show internal directories.
Click to hide internal directories.