Documentation
¶
Index ¶
- Constants
- Variables
- func AppendItems(items *[]map[string]types.AttributeValue, input interface{}) error
- func FieldNames(input interface{}) (names []string, err error)
- func Indirect(rv reflect.Value, decodingNil bool) reflect.Value
- func IndirectType(rt reflect.Type) (reflect.Type, int)
- func MarshalBool(v *bool, mode NilMode) (ddb.AttributeValue, error)
- func MarshalBytes(v []byte, mode NilMode) (ddb.AttributeValue, error)
- func MarshalDuration(v *time.Duration, mode NilMode) (ddb.AttributeValue, error)
- func MarshalFloat32(v *float32, mode NilMode) (ddb.AttributeValue, error)
- func MarshalFloat64(v *float64, mode NilMode) (ddb.AttributeValue, error)
- func MarshalInt(v *int, mode NilMode) (ddb.AttributeValue, error)
- func MarshalInt32(v *int32, mode NilMode) (ddb.AttributeValue, error)
- func MarshalInt64(v *int64, mode NilMode) (ddb.AttributeValue, error)
- func MarshalJSON(v interface{}) (ddb.AttributeValue, error)
- func MarshalMap(input interface{}) (map[string]types.AttributeValue, error)
- func MarshalMaps(input interface{}) ([]map[string]types.AttributeValue, error)
- func MarshalString(v *string, mode NilMode) (ddb.AttributeValue, error)
- func MarshalStringSlice(v *[]string, mode NilMode) (ddb.AttributeValue, error)
- func MarshalUint(v *uint, mode NilMode) (ddb.AttributeValue, error)
- func MarshalUint32(v *uint32, mode NilMode) (ddb.AttributeValue, error)
- func MarshalUint64(v *uint64, mode NilMode) (ddb.AttributeValue, error)
- func MarshalUnix(v *time.Time, mode NilMode) (ddb.AttributeValue, error)
- func MarshalUnixNano(v *time.Time, mode NilMode) (ddb.AttributeValue, error)
- func Marshaler(v interface{}, mode NilMode) (ddb.AttributeValue, error)
- func MustMarshalMap(input interface{}) map[string]types.AttributeValue
- func MustMarshalMaps(input interface{}) []map[string]types.AttributeValue
- func NameBuilders(input interface{}) []expression.NameBuilder
- func ProjectionBuilder(input interface{}) *expression.ProjectionBuilder
- func ToString(input interface{}) string
- func ToStringSlice(input interface{}) []string
- func UnmarshalBool(av ddb.AttributeValue, v *bool) error
- func UnmarshalBoolPtr(av ddb.AttributeValue, v **bool) error
- func UnmarshalBytes(av ddb.AttributeValue, v *[]byte) error
- func UnmarshalBytesPtr(av ddb.AttributeValue, v **[]byte) error
- func UnmarshalDuration(av ddb.AttributeValue, v *time.Duration) error
- func UnmarshalDurationPtr(av ddb.AttributeValue, v **time.Duration) error
- func UnmarshalFloat32(av ddb.AttributeValue, v *float32) error
- func UnmarshalFloat32Ptr(av ddb.AttributeValue, v **float32) error
- func UnmarshalFloat64(av ddb.AttributeValue, v *float64) error
- func UnmarshalFloat64Ptr(av ddb.AttributeValue, v **float64) error
- func UnmarshalInt(av ddb.AttributeValue, v *int) error
- func UnmarshalInt32(av ddb.AttributeValue, v *int32) error
- func UnmarshalInt32Ptr(av ddb.AttributeValue, v **int32) error
- func UnmarshalInt64(av ddb.AttributeValue, v *int64) error
- func UnmarshalInt64Ptr(av ddb.AttributeValue, v **int64) error
- func UnmarshalIntPtr(av ddb.AttributeValue, v **int) error
- func UnmarshalJSON(av ddb.AttributeValue, v interface{}) error
- func UnmarshalMap(item map[string]ddb.AttributeValue, input interface{}) error
- func UnmarshalMaps(items []map[string]ddb.AttributeValue, input interface{}) error
- func UnmarshalString(av ddb.AttributeValue, v *string) error
- func UnmarshalStringPtr(av ddb.AttributeValue, v **string) error
- func UnmarshalStringSlice(av ddb.AttributeValue, v *[]string) error
- func UnmarshalUint(av ddb.AttributeValue, v *uint) error
- func UnmarshalUint32(av ddb.AttributeValue, v *uint32) error
- func UnmarshalUint32Ptr(av ddb.AttributeValue, v **uint32) error
- func UnmarshalUint64(av ddb.AttributeValue, v *uint64) error
- func UnmarshalUint64Ptr(av ddb.AttributeValue, v **uint64) error
- func UnmarshalUintPtr(av ddb.AttributeValue, v **uint) error
- func UnmarshalUnix(av ddb.AttributeValue, v *time.Time) error
- func UnmarshalUnixNano(av ddb.AttributeValue, v *time.Time) error
- func UnmarshalUnixNanoPtr(av ddb.AttributeValue, v **time.Time) error
- func UnmarshalUnixPtr(av ddb.AttributeValue, v **time.Time) error
- type MapMarshaler
- type MapUnmarshaler
- type MarshalFunc
- func BoolMarshaler(v *bool, mode NilMode) MarshalFunc
- func BytesMarshaler(v []byte, mode NilMode) MarshalFunc
- func DurationMarshaler(v *time.Duration, mode NilMode) MarshalFunc
- func Float32Marshaler(v *float32, mode NilMode) MarshalFunc
- func Float64Marshaler(v *float64, mode NilMode) MarshalFunc
- func Int32Marshaler(v *int32, mode NilMode) MarshalFunc
- func Int64Marshaler(v *int64, mode NilMode) MarshalFunc
- func IntMarshaler(v *int, mode NilMode) MarshalFunc
- func JSONMarshaler(v interface{}) MarshalFunc
- func StringMarshaler(v *string, mode NilMode) MarshalFunc
- func StringSliceMarshaler(v *[]string, mode NilMode) MarshalFunc
- func Uint32Marshaler(v *uint32, mode NilMode) MarshalFunc
- func Uint64Marshaler(v *uint64, mode NilMode) MarshalFunc
- func UintMarshaler(v *uint, mode NilMode) MarshalFunc
- func UnixMarshaler(v *time.Time, mode NilMode) MarshalFunc
- func UnixNanoMarshaler(v *time.Time, mode NilMode) MarshalFunc
- type NilMode
- type UnmarshalerFunc
- func BoolPtrUnmarshaler(v **bool) UnmarshalerFunc
- func BoolUnmarshaler(v *bool) UnmarshalerFunc
- func BytesPtrUnmarshaler(v **[]byte) UnmarshalerFunc
- func BytesUnmarshaler(v *[]byte) UnmarshalerFunc
- func DurationPtrUnmarshaler(v **time.Duration) UnmarshalerFunc
- func DurationUnmarshaler(v *time.Duration) UnmarshalerFunc
- func Float32PtrUnmarshaler(v **float32) UnmarshalerFunc
- func Float32Unmarshaler(v *float32) UnmarshalerFunc
- func Float64PtrUnmarshaler(v **float64) UnmarshalerFunc
- func Float64Unmarshaler(v *float64) UnmarshalerFunc
- func Int32PtrUnmarshaler(v **int32) UnmarshalerFunc
- func Int32Unmarshaler(v *int32) UnmarshalerFunc
- func Int64PtrUnmarshaler(v **int64) UnmarshalerFunc
- func Int64Unmarshaler(v *int64) UnmarshalerFunc
- func IntUnmarshaler(v *int) UnmarshalerFunc
- func IntUnmarshalerPtr(v **int) UnmarshalerFunc
- func JSONUnmarshaler(v interface{}) UnmarshalerFunc
- func StringPtrUnmarshaler(v **string) UnmarshalerFunc
- func StringSliceUnmarshaler(v *[]string) UnmarshalerFunc
- func StringUnmarshaler(v *string) UnmarshalerFunc
- func Uint32PtrUnmarshaler(v **uint32) UnmarshalerFunc
- func Uint32Unmarshaler(v *uint32) UnmarshalerFunc
- func Uint64PtrUnmarshaler(v **uint64) UnmarshalerFunc
- func Uint64Unmarshaler(v *uint64) UnmarshalerFunc
- func UintUnmarshaler(v *uint) UnmarshalerFunc
- func UintUnmarshalerPtr(v **uint) UnmarshalerFunc
- func UnixNanoPtrUnmarshaler(v **time.Time) UnmarshalerFunc
- func UnixNanoUnmarshaler(v *time.Time) UnmarshalerFunc
- func UnixPtrUnmarshaler(v **time.Time) UnmarshalerFunc
- func UnixUnmarshaler(v *time.Time) UnmarshalerFunc
- func Unmarshaler(v interface{}) UnmarshalerFunc
- type ValueMarshalMap
- type ValueUnmarshalMap
Constants ¶
const ( MarshalAsJSON MarshalAsYAML MarshalAsTOML )
const (
// FieldStructTagName is the struct fieldConfig used to denote a document field
FieldStructTagName = "dynamodbav"
)
Variables ¶
var ErrNil = errors.New("value must not be nil when NilError flag is set")
Functions ¶
func AppendItems ¶
func AppendItems(items *[]map[string]types.AttributeValue, input interface{}) error
AppendItems encodes a given input and appends these items to the given slice of items
func FieldNames ¶
FieldNames returns a string slice with the field names for the given input
func Indirect ¶ added in v0.2.0
Indirect is Based on the enoding/JSON type reflect value type indirection in GoExec Stdlib https://golang.org/src/encoding/json/decode.go Indirect func.
func IndirectType ¶ added in v0.2.0
IndirectType Based on the enoding/JSON type reflect value type indirection in GoExec Stdlib except used for reflect.Type https://golang.org/src/encoding/json/decode.go Indirect func.
func MarshalBool ¶ added in v0.2.0
func MarshalBool(v *bool, mode NilMode) (ddb.AttributeValue, error)
MarshalBool marshals an AttributeValue into the given value
func MarshalBytes ¶ added in v0.2.0
func MarshalBytes(v []byte, mode NilMode) (ddb.AttributeValue, error)
MarshalBytes marshals an AttributeValue into the given value
func MarshalDuration ¶ added in v1.2.2
MarshalDuration marshals an AttributeValue into the given value
func MarshalFloat32 ¶ added in v0.2.0
func MarshalFloat32(v *float32, mode NilMode) (ddb.AttributeValue, error)
MarshalFloat32 marshals an AttributeValue into the given value
func MarshalFloat64 ¶ added in v0.2.0
func MarshalFloat64(v *float64, mode NilMode) (ddb.AttributeValue, error)
MarshalFloat64 marshals an AttributeValue into the given value
func MarshalInt ¶ added in v0.2.0
func MarshalInt(v *int, mode NilMode) (ddb.AttributeValue, error)
MarshalInt marshals an AttributeValue into the given value
func MarshalInt32 ¶ added in v0.2.4
func MarshalInt32(v *int32, mode NilMode) (ddb.AttributeValue, error)
MarshalInt32 marshals an AttributeValue into the given value
func MarshalInt64 ¶ added in v0.2.0
func MarshalInt64(v *int64, mode NilMode) (ddb.AttributeValue, error)
MarshalInt64 marshals an AttributeValue into the given value
func MarshalJSON ¶ added in v0.2.0
func MarshalJSON(v interface{}) (ddb.AttributeValue, error)
MarshalJSON marshals an AttributeValue into the given value
func MarshalMap ¶ added in v0.2.0
func MarshalMap(input interface{}) (map[string]types.AttributeValue, error)
MarshalMap marshals a given input that is a map or a struct into an attribute value map
func MarshalMaps ¶ added in v0.2.0
func MarshalMaps(input interface{}) ([]map[string]types.AttributeValue, error)
MarshalMaps marshals an input slice into a slice of attribute value maps panics if the input's kind is not a slice
func MarshalString ¶ added in v0.2.0
func MarshalString(v *string, mode NilMode) (ddb.AttributeValue, error)
MarshalString marshals an AttributeValue into the given value
func MarshalStringSlice ¶ added in v1.2.2
func MarshalStringSlice(v *[]string, mode NilMode) (ddb.AttributeValue, error)
MarshalStringSlice marshals an AttributeValue into the given value
func MarshalUint ¶ added in v0.2.4
func MarshalUint(v *uint, mode NilMode) (ddb.AttributeValue, error)
MarshalUint marshals an AttributeValue into the given value
func MarshalUint32 ¶ added in v0.2.4
func MarshalUint32(v *uint32, mode NilMode) (ddb.AttributeValue, error)
MarshalUint32 marshals an AttributeValue into the given value
func MarshalUint64 ¶ added in v0.2.4
func MarshalUint64(v *uint64, mode NilMode) (ddb.AttributeValue, error)
MarshalUint64 marshals an AttributeValue into the given value
func MarshalUnix ¶ added in v0.2.0
MarshalUnix marshals an AttributeValue into the given value
func MarshalUnixNano ¶ added in v0.2.0
MarshalUnixNano marshals an AttributeValue into the given value
func Marshaler ¶ added in v1.2.3
func Marshaler(v interface{}, mode NilMode) (ddb.AttributeValue, error)
Marshaler marshals an AttributeValue into the given value
func MustMarshalMap ¶ added in v0.2.0
func MustMarshalMap(input interface{}) map[string]types.AttributeValue
MustMarshalMap marshals a given input that is a map or a struct into an attribute value map panics on error
func MustMarshalMaps ¶ added in v0.2.0
func MustMarshalMaps(input interface{}) []map[string]types.AttributeValue
MustMarshalMaps marshals an input slice into a slice of attribute value maps panics on error
func NameBuilders ¶
func NameBuilders(input interface{}) []expression.NameBuilder
NameBuilders returns a dynamo Expression name builder object for the given input
func ProjectionBuilder ¶
func ProjectionBuilder(input interface{}) *expression.ProjectionBuilder
ProjectionBuilder returns a dynamo Expression name builder object with a set of Projection or if Projection param is nil then all fields Projection
func ToString ¶
func ToString(input interface{}) string
ToString gets the base string value of given string if input is a string or string ptr then the string is returned if the input implements fmt.Stringer, then .String() is called panics otherwise
func ToStringSlice ¶
func ToStringSlice(input interface{}) []string
ToStringSlice converts an arbitrary input into a slice of strings panics if input is not a slice or does not contain elements that can be converted to a string
func UnmarshalBool ¶ added in v0.2.0
func UnmarshalBool(av ddb.AttributeValue, v *bool) error
UnmarshalBool unmarshals an AttributeValue into the given value
func UnmarshalBoolPtr ¶ added in v0.2.4
func UnmarshalBoolPtr(av ddb.AttributeValue, v **bool) error
UnmarshalBoolPtr unmarshals an AttributeValue into the given value
func UnmarshalBytes ¶ added in v0.2.0
func UnmarshalBytes(av ddb.AttributeValue, v *[]byte) error
UnmarshalBytes unmarshals an AttributeValue into the given value
func UnmarshalBytesPtr ¶ added in v0.2.4
func UnmarshalBytesPtr(av ddb.AttributeValue, v **[]byte) error
UnmarshalBytesPtr unmarshals an AttributeValue into the given value
func UnmarshalDuration ¶ added in v1.2.2
func UnmarshalDuration(av ddb.AttributeValue, v *time.Duration) error
UnmarshalDuration unmarshals an AttributeValue into the given value
func UnmarshalDurationPtr ¶ added in v1.2.2
func UnmarshalDurationPtr(av ddb.AttributeValue, v **time.Duration) error
UnmarshalDurationPtr unmarshals an AttributeValue into the given value
func UnmarshalFloat32 ¶ added in v0.2.0
func UnmarshalFloat32(av ddb.AttributeValue, v *float32) error
UnmarshalFloat32 unmarshals an AttributeValue into the given value
func UnmarshalFloat32Ptr ¶ added in v0.2.4
func UnmarshalFloat32Ptr(av ddb.AttributeValue, v **float32) error
UnmarshalFloat32Ptr unmarshals an AttributeValue into the given value
func UnmarshalFloat64 ¶ added in v0.2.0
func UnmarshalFloat64(av ddb.AttributeValue, v *float64) error
UnmarshalFloat64 unmarshals an AttributeValue into the given value
func UnmarshalFloat64Ptr ¶ added in v0.2.4
func UnmarshalFloat64Ptr(av ddb.AttributeValue, v **float64) error
UnmarshalFloat64Ptr unmarshals an AttributeValue into the given value
func UnmarshalInt ¶ added in v0.2.0
func UnmarshalInt(av ddb.AttributeValue, v *int) error
UnmarshalInt unmarshals an AttributeValue into the given value
func UnmarshalInt32 ¶ added in v0.2.4
func UnmarshalInt32(av ddb.AttributeValue, v *int32) error
UnmarshalInt32 unmarshals an AttributeValue into the given value
func UnmarshalInt32Ptr ¶ added in v0.2.4
func UnmarshalInt32Ptr(av ddb.AttributeValue, v **int32) error
UnmarshalInt32Ptr unmarshals an AttributeValue into the given value
func UnmarshalInt64 ¶ added in v0.2.0
func UnmarshalInt64(av ddb.AttributeValue, v *int64) error
UnmarshalInt64 unmarshals an AttributeValue into the given value
func UnmarshalInt64Ptr ¶ added in v0.2.4
func UnmarshalInt64Ptr(av ddb.AttributeValue, v **int64) error
UnmarshalInt64Ptr unmarshals an AttributeValue into the given value
func UnmarshalIntPtr ¶ added in v0.2.4
func UnmarshalIntPtr(av ddb.AttributeValue, v **int) error
UnmarshalIntPtr unmarshals an AttributeValue into the given value
func UnmarshalJSON ¶ added in v0.2.0
func UnmarshalJSON(av ddb.AttributeValue, v interface{}) error
UnmarshalJSON unmarshals an AttributeValue into the given value
func UnmarshalMap ¶ added in v0.2.0
func UnmarshalMap(item map[string]ddb.AttributeValue, input interface{}) error
UnmarshalMap unmarshals a map of dynamodb attribute values into given input struct or map if the item is a map, the map must have the keys already set in the map
func UnmarshalMaps ¶ added in v0.2.0
func UnmarshalMaps(items []map[string]ddb.AttributeValue, input interface{}) error
UnmarshalMaps decodes a slice of AttributeValue maps into the given input that must be a ptr to a slice
func UnmarshalString ¶ added in v0.2.0
func UnmarshalString(av ddb.AttributeValue, v *string) error
UnmarshalString unmarshals an AttributeValue into the given value
func UnmarshalStringPtr ¶ added in v0.2.4
func UnmarshalStringPtr(av ddb.AttributeValue, v **string) error
UnmarshalStringPtr unmarshals an AttributeValue into the given value
func UnmarshalStringSlice ¶ added in v1.2.2
func UnmarshalStringSlice(av ddb.AttributeValue, v *[]string) error
UnmarshalStringSlice unmarshals a string slice
func UnmarshalUint ¶ added in v0.2.4
func UnmarshalUint(av ddb.AttributeValue, v *uint) error
UnmarshalUint unmarshals an AttributeValue into the given value
func UnmarshalUint32 ¶ added in v0.2.4
func UnmarshalUint32(av ddb.AttributeValue, v *uint32) error
UnmarshalUint32 unmarshals an AttributeValue into the given value
func UnmarshalUint32Ptr ¶ added in v0.2.4
func UnmarshalUint32Ptr(av ddb.AttributeValue, v **uint32) error
UnmarshalUint32Ptr unmarshals an AttributeValue into the given value
func UnmarshalUint64 ¶ added in v0.2.4
func UnmarshalUint64(av ddb.AttributeValue, v *uint64) error
UnmarshalUint64 unmarshals an AttributeValue into the given value
func UnmarshalUint64Ptr ¶ added in v0.2.4
func UnmarshalUint64Ptr(av ddb.AttributeValue, v **uint64) error
UnmarshalUint64Ptr unmarshals an AttributeValue into the given value
func UnmarshalUintPtr ¶ added in v0.2.4
func UnmarshalUintPtr(av ddb.AttributeValue, v **uint) error
UnmarshalUintPtr unmarshals an AttributeValue into the given value
func UnmarshalUnix ¶ added in v0.2.0
func UnmarshalUnix(av ddb.AttributeValue, v *time.Time) error
UnmarshalUnix unmarshals an AttributeValue into the given value
func UnmarshalUnixNano ¶ added in v0.2.0
func UnmarshalUnixNano(av ddb.AttributeValue, v *time.Time) error
UnmarshalUnixNano unmarshals an AttributeValue into the given value
func UnmarshalUnixNanoPtr ¶ added in v0.2.4
func UnmarshalUnixNanoPtr(av ddb.AttributeValue, v **time.Time) error
UnmarshalUnixNanoPtr unmarshals an AttributeValue into the given value
func UnmarshalUnixPtr ¶ added in v0.2.4
func UnmarshalUnixPtr(av ddb.AttributeValue, v **time.Time) error
UnmarshalUnixPtr unmarshals an AttributeValue into the given value
Types ¶
type MapMarshaler ¶ added in v0.2.0
type MapMarshaler interface {
MarshalAttributeValueMap(map[string]types.AttributeValue) error
}
MapMarshaler allows more control over encoding types to attribute value maps
type MapUnmarshaler ¶ added in v1.2.0
type MapUnmarshaler interface {
UnmarshalAttributeValueMap(avMap map[string]ddb.AttributeValue) error
}
MapUnmarshaler allows more control over decoding structs from attribute value maps
type MarshalFunc ¶ added in v0.2.0
type MarshalFunc func() (ddb.AttributeValue, error)
MarshalFunc represents a func that Marshals an AttributeValue
func BoolMarshaler ¶ added in v0.2.0
func BoolMarshaler(v *bool, mode NilMode) MarshalFunc
BoolMarshaler returns a MarshalFunc func that will generate an AttributeValue
func BytesMarshaler ¶ added in v0.2.0
func BytesMarshaler(v []byte, mode NilMode) MarshalFunc
BytesMarshaler returns a MarshalFunc func that will generate an AttributeValue
func DurationMarshaler ¶ added in v1.2.2
func DurationMarshaler(v *time.Duration, mode NilMode) MarshalFunc
DurationMarshaler returns a MarshalFunc func that will generate an AttributeValue
func Float32Marshaler ¶ added in v0.2.0
func Float32Marshaler(v *float32, mode NilMode) MarshalFunc
Float32Marshaler returns a MarshalFunc func that will generate an AttributeValue
func Float64Marshaler ¶ added in v0.2.0
func Float64Marshaler(v *float64, mode NilMode) MarshalFunc
Float64Marshaler returns a MarshalFunc func that will generate an AttributeValue
func Int32Marshaler ¶ added in v0.2.4
func Int32Marshaler(v *int32, mode NilMode) MarshalFunc
Int32Marshaler returns a MarshalFunc func that will generate an AttributeValue
func Int64Marshaler ¶ added in v0.2.0
func Int64Marshaler(v *int64, mode NilMode) MarshalFunc
Int64Marshaler returns a MarshalFunc func that will generate an AttributeValue
func IntMarshaler ¶ added in v0.2.0
func IntMarshaler(v *int, mode NilMode) MarshalFunc
IntMarshaler returns a MarshalFunc func that will generate an AttributeValue
func JSONMarshaler ¶ added in v0.2.0
func JSONMarshaler(v interface{}) MarshalFunc
JSONMarshaler returns a MarshalFunc func that will generate an AttributeValue
func StringMarshaler ¶ added in v0.2.0
func StringMarshaler(v *string, mode NilMode) MarshalFunc
StringMarshaler returns a MarshalFunc func that will generate an AttributeValue
func StringSliceMarshaler ¶ added in v1.2.2
func StringSliceMarshaler(v *[]string, mode NilMode) MarshalFunc
StringSliceMarshaler returns a MarshalFunc func that will generate an AttributeValue
func Uint32Marshaler ¶ added in v0.2.4
func Uint32Marshaler(v *uint32, mode NilMode) MarshalFunc
Uint32Marshaler returns a MarshalFunc func that will generate an AttributeValue
func Uint64Marshaler ¶ added in v0.2.4
func Uint64Marshaler(v *uint64, mode NilMode) MarshalFunc
Uint64Marshaler returns a MarshalFunc func that will generate an AttributeValue
func UintMarshaler ¶ added in v0.2.4
func UintMarshaler(v *uint, mode NilMode) MarshalFunc
UintMarshaler returns a MarshalFunc func that will generate an AttributeValue
func UnixMarshaler ¶ added in v0.2.0
func UnixMarshaler(v *time.Time, mode NilMode) MarshalFunc
UnixMarshaler returns a MarshalFunc func that will generate an AttributeValue
func UnixNanoMarshaler ¶ added in v0.2.0
func UnixNanoMarshaler(v *time.Time, mode NilMode) MarshalFunc
UnixNanoMarshaler returns a MarshalFunc func that will generate an AttributeValue
func (MarshalFunc) MarshalDynamoDBAttributeValue ¶ added in v0.2.0
func (e MarshalFunc) MarshalDynamoDBAttributeValue() (ddb.AttributeValue, error)
type NilMode ¶ added in v0.2.0
type NilMode int
NilMode represents the mode for how the marshaler will marshal a nil value
type UnmarshalerFunc ¶ added in v0.2.0
type UnmarshalerFunc func(ddb.AttributeValue) error
UnmarshalerFunc represents a func that unmarshals an AttributeValue
func BoolPtrUnmarshaler ¶ added in v0.2.4
func BoolPtrUnmarshaler(v **bool) UnmarshalerFunc
BoolPtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func BoolUnmarshaler ¶ added in v0.2.0
func BoolUnmarshaler(v *bool) UnmarshalerFunc
BoolUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func BytesPtrUnmarshaler ¶ added in v0.2.4
func BytesPtrUnmarshaler(v **[]byte) UnmarshalerFunc
BytesPtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func BytesUnmarshaler ¶ added in v0.2.0
func BytesUnmarshaler(v *[]byte) UnmarshalerFunc
BytesUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func DurationPtrUnmarshaler ¶ added in v1.2.2
func DurationPtrUnmarshaler(v **time.Duration) UnmarshalerFunc
DurationPtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func DurationUnmarshaler ¶ added in v1.2.2
func DurationUnmarshaler(v *time.Duration) UnmarshalerFunc
DurationUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Float32PtrUnmarshaler ¶ added in v0.2.4
func Float32PtrUnmarshaler(v **float32) UnmarshalerFunc
Float32PtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Float32Unmarshaler ¶ added in v0.2.0
func Float32Unmarshaler(v *float32) UnmarshalerFunc
Float32Unmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Float64PtrUnmarshaler ¶ added in v0.2.4
func Float64PtrUnmarshaler(v **float64) UnmarshalerFunc
Float64PtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Float64Unmarshaler ¶ added in v0.2.0
func Float64Unmarshaler(v *float64) UnmarshalerFunc
Float64Unmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Int32PtrUnmarshaler ¶ added in v0.2.4
func Int32PtrUnmarshaler(v **int32) UnmarshalerFunc
Int32PtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Int32Unmarshaler ¶ added in v0.2.4
func Int32Unmarshaler(v *int32) UnmarshalerFunc
Int32Unmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Int64PtrUnmarshaler ¶ added in v0.2.4
func Int64PtrUnmarshaler(v **int64) UnmarshalerFunc
Int64PtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Int64Unmarshaler ¶ added in v0.2.0
func Int64Unmarshaler(v *int64) UnmarshalerFunc
Int64Unmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func IntUnmarshaler ¶ added in v0.2.0
func IntUnmarshaler(v *int) UnmarshalerFunc
IntUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func IntUnmarshalerPtr ¶ added in v0.2.4
func IntUnmarshalerPtr(v **int) UnmarshalerFunc
IntUnmarshalerPtr returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func JSONUnmarshaler ¶ added in v0.2.0
func JSONUnmarshaler(v interface{}) UnmarshalerFunc
JSONUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func StringPtrUnmarshaler ¶ added in v0.2.4
func StringPtrUnmarshaler(v **string) UnmarshalerFunc
StringPtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func StringSliceUnmarshaler ¶ added in v1.2.2
func StringSliceUnmarshaler(v *[]string) UnmarshalerFunc
StringSliceUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into a string slice
func StringUnmarshaler ¶ added in v0.2.0
func StringUnmarshaler(v *string) UnmarshalerFunc
StringUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Uint32PtrUnmarshaler ¶ added in v0.2.4
func Uint32PtrUnmarshaler(v **uint32) UnmarshalerFunc
Uint32PtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Uint32Unmarshaler ¶ added in v0.2.4
func Uint32Unmarshaler(v *uint32) UnmarshalerFunc
Uint32Unmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Uint64PtrUnmarshaler ¶ added in v0.2.4
func Uint64PtrUnmarshaler(v **uint64) UnmarshalerFunc
Uint64PtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Uint64Unmarshaler ¶ added in v0.2.4
func Uint64Unmarshaler(v *uint64) UnmarshalerFunc
Uint64Unmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func UintUnmarshaler ¶ added in v0.2.4
func UintUnmarshaler(v *uint) UnmarshalerFunc
UintUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func UintUnmarshalerPtr ¶ added in v0.2.4
func UintUnmarshalerPtr(v **uint) UnmarshalerFunc
UintUnmarshalerPtr returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func UnixNanoPtrUnmarshaler ¶ added in v0.2.4
func UnixNanoPtrUnmarshaler(v **time.Time) UnmarshalerFunc
UnixNanoPtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func UnixNanoUnmarshaler ¶ added in v0.2.0
func UnixNanoUnmarshaler(v *time.Time) UnmarshalerFunc
UnixNanoUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func UnixPtrUnmarshaler ¶ added in v0.2.4
func UnixPtrUnmarshaler(v **time.Time) UnmarshalerFunc
UnixPtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func UnixUnmarshaler ¶ added in v0.2.0
func UnixUnmarshaler(v *time.Time) UnmarshalerFunc
UnixUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Unmarshaler ¶ added in v1.2.3
func Unmarshaler(v interface{}) UnmarshalerFunc
Unmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given interface
func (UnmarshalerFunc) UnmarshalDynamoDBAttributeValue ¶ added in v0.2.0
func (d UnmarshalerFunc) UnmarshalDynamoDBAttributeValue(v ddb.AttributeValue) error
UnmarshalDynamoDBAttributeValue implements attributevalue.Unmarshal values
type ValueMarshalMap ¶ added in v0.2.0
ValueMarshalMap represents a map of attributevalue.Marshaler values
func (ValueMarshalMap) MarshalMap ¶ added in v0.2.0
func (em ValueMarshalMap) MarshalMap() (map[string]ddb.AttributeValue, error)
MarshalMap runs all the ddbav.Marshaler in the MarshalMap and generates a map of AttributeValues
func (ValueMarshalMap) MarshalToMap ¶ added in v0.2.0
func (em ValueMarshalMap) MarshalToMap(input map[string]ddb.AttributeValue) error
MarshalToMap runs all the ddbav.Marshaler in the MarshalMap and adds their values to the input
type ValueUnmarshalMap ¶ added in v1.2.0
type ValueUnmarshalMap map[string]ddbav.Unmarshaler
ValueUnmarshalMap represents a map of attributevalue.Unmarshaler
func (ValueUnmarshalMap) UnmarshalAttributeValueMap ¶ added in v1.2.0
func (dm ValueUnmarshalMap) UnmarshalAttributeValueMap(m map[string]ddb.AttributeValue) error
UnmarshalAttributeValueMap runs all the attributevalue.Unmarshalers in the UnmarshalerFunc map