Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct {
// Field is the original struct field that was parsed.
Field reflect.StructField
// Name is the first tag value in the `dynamodbav` struct tag.
Name string
// OmitEmpty is true only if the `dynamodbav` struct tag also includes `omitempty`.
OmitEmpty bool
// UnixTime is true only if the `dynamodbav` struct tag also includes `unixtime`.
UnixTime bool
}
Attribute contains metadata about a reflect.StructField that represents a DynamoDB attribute.
type Model ¶
type Model struct {
// StructType is the type of the struct from which the Model instance was parsed.
StructType reflect.Type
TableName *string
HashKey *Attribute
SortKey *Attribute
Version *Attribute
CreatedTime *Attribute
ModifiedTime *Attribute
}
Model contain metadata about attributes that have been parsed successfully from struct tags `dynamodbav`.
func ParseFromStruct ¶
ParseFromStruct parses the struct tags given by an instance of the struct.
Returns an error if there are validation issues.
Click to show internal directories.
Click to hide internal directories.