Documentation ¶
Index ¶
- func Clone(from interface{}, to interface{}) (err error)
- func FieldNameToCode(name string) string
- func FieldsMetadata(ety interface{}) map[string]*FieldMetadata
- func From(from interface{}, entity interface{}) (err error)
- func OptionalFields(ety interface{}, skip ...string) []string
- func TRN(name string, id string) *trn.TRN
- func To(entity interface{}, to interface{}, field ...string) (err error)
- type FieldMap
- type FieldMetadata
- func (f *FieldMetadata) DmoMemoryName() string
- func (f *FieldMetadata) DmoMongodbName() string
- func (f *FieldMetadata) DmoRedisName() string
- func (f *FieldMetadata) DmoSqlName() string
- func (f *FieldMetadata) DtoHttpName() string
- func (f *FieldMetadata) Getter() string
- func (f *FieldMetadata) IsEncrypted() bool
- func (f *FieldMetadata) IsOptional() bool
- func (f *FieldMetadata) IsRelationship() bool
- func (f *FieldMetadata) QroName() string
- func (f *FieldMetadata) Setter() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldNameToCode ¶ added in v0.3.0
FieldNameToCode given a field name returns the coded attribute field name. Used to map a field name to its attribute in DMO, DTO and QRO objects.
func FieldsMetadata ¶ added in v0.5.2
func FieldsMetadata(ety interface{}) map[string]*FieldMetadata
func OptionalFields ¶ added in v0.5.2
Types ¶
type FieldMap ¶
func ToFieldMap ¶ added in v0.3.0
type FieldMetadata ¶ added in v0.5.2
type FieldMetadata struct {
// contains filtered or unexported fields
}
func (*FieldMetadata) DmoMemoryName ¶ added in v0.5.2
func (f *FieldMetadata) DmoMemoryName() string
func (*FieldMetadata) DmoMongodbName ¶ added in v0.5.2
func (f *FieldMetadata) DmoMongodbName() string
func (*FieldMetadata) DmoRedisName ¶ added in v0.5.2
func (f *FieldMetadata) DmoRedisName() string
func (*FieldMetadata) DmoSqlName ¶ added in v0.5.2
func (f *FieldMetadata) DmoSqlName() string
func (*FieldMetadata) DtoHttpName ¶ added in v0.5.2
func (f *FieldMetadata) DtoHttpName() string
func (*FieldMetadata) Getter ¶ added in v0.5.2
func (f *FieldMetadata) Getter() string
func (*FieldMetadata) IsEncrypted ¶ added in v0.5.2
func (f *FieldMetadata) IsEncrypted() bool
func (*FieldMetadata) IsOptional ¶ added in v0.5.2
func (f *FieldMetadata) IsOptional() bool
func (*FieldMetadata) IsRelationship ¶ added in v0.5.5
func (f *FieldMetadata) IsRelationship() bool
func (*FieldMetadata) QroName ¶ added in v0.5.2
func (f *FieldMetadata) QroName() string
func (*FieldMetadata) Setter ¶ added in v0.5.2
func (f *FieldMetadata) Setter() string
Click to show internal directories.
Click to hide internal directories.