Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetadataMapper ¶
Types ¶
type DisplayName ¶
type DisplayName struct { }
func (DisplayName) FromInternal ¶
func (d DisplayName) FromInternal(data map[string]interface{})
func (DisplayName) ModifySchema ¶
func (DisplayName) ToInternal ¶
func (d DisplayName) ToInternal(data map[string]interface{})
type Drop ¶
type Drop struct {
Field string
}
func (Drop) FromInternal ¶
func (Drop) ModifySchema ¶
func (Drop) ToInternal ¶
type Embed ¶
type Embed struct { Field string Optional bool ReadOnly bool Ignore []string // contains filtered or unexported fields }
func (*Embed) FromInternal ¶
func (*Embed) ModifySchema ¶
func (*Embed) ToInternal ¶
type LabelField ¶
type LabelField struct {
Field string
}
func (LabelField) FromInternal ¶
func (e LabelField) FromInternal(data map[string]interface{})
func (LabelField) ModifySchema ¶
func (LabelField) ToInternal ¶
func (e LabelField) ToInternal(data map[string]interface{})
type ReadOnly ¶
func (ReadOnly) FromInternal ¶
func (ReadOnly) ModifySchema ¶
func (ReadOnly) ToInternal ¶
type RenameReference ¶
type RenameReference struct {
// contains filtered or unexported fields
}
func (*RenameReference) FromInternal ¶
func (r *RenameReference) FromInternal(data map[string]interface{})
func (*RenameReference) ModifySchema ¶
func (*RenameReference) ToInternal ¶
func (r *RenameReference) ToInternal(data map[string]interface{})
type Scope ¶
type Scope struct { If types.TypeScope IfNot types.TypeScope Mappers []types.Mapper // contains filtered or unexported fields }
func (*Scope) FromInternal ¶
func (*Scope) ModifySchema ¶
func (*Scope) ToInternal ¶
type SetValue ¶
type SetValue struct {
From, To string
Value interface{}
IfEq interface{}
}
func (SetValue) FromInternal ¶
func (SetValue) ModifySchema ¶
func (SetValue) ToInternal ¶
type SliceToMap ¶
func (SliceToMap) FromInternal ¶
func (s SliceToMap) FromInternal(data map[string]interface{})
func (SliceToMap) ModifySchema ¶
func (SliceToMap) ToInternal ¶
func (s SliceToMap) ToInternal(data map[string]interface{})
type UnionEmbed ¶
type UnionEmbed struct { Fields []UnionMapping // contains filtered or unexported fields }
func (*UnionEmbed) FromInternal ¶
func (u *UnionEmbed) FromInternal(data map[string]interface{})
func (*UnionEmbed) ModifySchema ¶
func (*UnionEmbed) ToInternal ¶
func (u *UnionEmbed) ToInternal(data map[string]interface{})
type UnionMapping ¶
Click to show internal directories.
Click to hide internal directories.