Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalKey ¶
func MarshalKey(in interface{}, encoderOpts ...func(*KeyEncoder)) (map[string]*dynamodb.AttributeValue, error)
Types ¶
type KeyEncoder ¶
type KeyEncoder struct { TagName string PartitionKeyTag string SortKeyTag string // contains filtered or unexported fields }
func NewKeyEncoder ¶
func NewKeyEncoder(opts ...func(*KeyEncoder)) *KeyEncoder
func (*KeyEncoder) Encode ¶
func (e *KeyEncoder) Encode(in interface{}) (map[string]*dynamodb.AttributeValue, error)
type SchemaEncoder ¶
type SchemaEncoder struct { TagName string PartitionKeyTag string SortKeyTag string // contains filtered or unexported fields }
func NewSchemaEncoder ¶
func NewSchemaEncoder(opts ...func(e *SchemaEncoder)) *SchemaEncoder
func (*SchemaEncoder) AttributeDefinition ¶
func (s *SchemaEncoder) AttributeDefinition() []*dynamodb.AttributeDefinition
func (*SchemaEncoder) Encode ¶
func (s *SchemaEncoder) Encode(in interface{}) error
func (*SchemaEncoder) KeySchema ¶
func (s *SchemaEncoder) KeySchema() []*dynamodb.KeySchemaElement
Click to show internal directories.
Click to hide internal directories.