Documentation ¶
Index ¶
- Constants
- func IsHashKey(spec specs) bool
- func IsKeyField(spec specs) bool
- func IsRangeKey(spec specs) bool
- func IsRequired(spec specs) bool
- func ParseDdbTag(tag string) (specs, error)
- func Version() string
- type DdbMarshaller
- func (me *DdbMarshaller) GetUnmarshaledFields(target interface{}, response map[string]*dynamodb.AttributeValue) (map[string]*dynamodb.AttributeValue, error)
- func (me *DdbMarshaller) Marshal(source interface{}) (result map[string]*dynamodb.AttributeValue, err error)
- func (me *DdbMarshaller) MarshalTagFilter(source interface{}, filter func(spec specs) bool) (result map[string]*dynamodb.AttributeValue, err error)
- func (marshaller *DdbMarshaller) SetDecapitalizeUntaggedFieldNames(value bool)
- func (marshaller *DdbMarshaller) SetFieldNamePrefix(prefix string)
- func (marshaller *DdbMarshaller) SetMarshalAllPublicFields(value bool)
- func (me *DdbMarshaller) Unmarshal(target interface{}, source map[string]*dynamodb.AttributeValue) error
Constants ¶
View Source
const ( TagDdb = "ddb" TagItemHashJey = "hash-key" TagItemRangeKey = "range-key" TagItemRequired = "required" TagItemTtlField = "ttl-ts" )
Variables ¶
This section is empty.
Functions ¶
func IsKeyField ¶
func IsKeyField(spec specs) bool
func IsRangeKey ¶
func IsRangeKey(spec specs) bool
func IsRequired ¶
func IsRequired(spec specs) bool
func ParseDdbTag ¶
Types ¶
type DdbMarshaller ¶
type DdbMarshaller struct {
// contains filtered or unexported fields
}
func NewMarshaller ¶
func NewMarshaller() *DdbMarshaller
func (*DdbMarshaller) GetUnmarshaledFields ¶
func (me *DdbMarshaller) GetUnmarshaledFields(target interface{}, response map[string]*dynamodb.AttributeValue) (map[string]*dynamodb.AttributeValue, error)
func (*DdbMarshaller) Marshal ¶
func (me *DdbMarshaller) Marshal(source interface{}) (result map[string]*dynamodb.AttributeValue, err error)
func (*DdbMarshaller) MarshalTagFilter ¶
func (me *DdbMarshaller) MarshalTagFilter(source interface{}, filter func(spec specs) bool) (result map[string]*dynamodb.AttributeValue, err error)
func (*DdbMarshaller) SetDecapitalizeUntaggedFieldNames ¶
func (marshaller *DdbMarshaller) SetDecapitalizeUntaggedFieldNames(value bool)
func (*DdbMarshaller) SetFieldNamePrefix ¶
func (marshaller *DdbMarshaller) SetFieldNamePrefix(prefix string)
func (*DdbMarshaller) SetMarshalAllPublicFields ¶
func (marshaller *DdbMarshaller) SetMarshalAllPublicFields(value bool)
func (*DdbMarshaller) Unmarshal ¶
func (me *DdbMarshaller) Unmarshal(target interface{}, source map[string]*dynamodb.AttributeValue) error
Click to show internal directories.
Click to hide internal directories.