Documentation ¶
Index ¶
- Variables
- type ApplyError
- type ExpandList
- type ExpandListInterface
- type ExpandOp
- type FieldNameCollisionError
- type GetList
- type GetListInterface
- type GetOp
- type IndexedSubNode
- type IndexedSubNodes
- type Model
- func (m *Model) ApplyOn(g internal.Getter) (fvalue.Values, error)
- func (m *Model) Expand(g internal.Expander) error
- func (m *Model) Fill(inputModelValue reflect.Value, layers []fvalue.Values) (plocation.Locations, error)
- func (m *Model) GetFieldValuesFor(id string, value reflect.Value) fvalue.Values
- func (m *Model) TypeName() string
- type ModelError
- type Node
- type StructNode
- func (n *StructNode) BuildExpandList(el *ExpandList)
- func (n *StructNode) BuildGetList(s *GetList)
- func (n *StructNode) FeedFieldValues(srcID string, fieldValues fvalue.Values, value reflect.Value)
- func (n StructNode) Fill(value reflect.Value, layers []fvalue.Values) (plocation.Locations, error)
- func (n *StructNode) PushSubNodes(index []int, scanned Node)
- type StructNodeError
- type UnsupportedTypeError
- type ValueNode
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrApply = errors.New("")
View Source
var ErrInvalidEmbedded = errors.New("invalid embedded")
ErrInvalidEmbedded represent an error where ....
View Source
var ErrModel = errors.New("")
View Source
var ErrStructNode = errors.New("")
View Source
var ErrUninitializedKey = errors.New("uninitialized key")
ErrUninitializedKey represent an error where ....
Functions ¶
This section is empty.
Types ¶
type ApplyError ¶
func (ApplyError) Is ¶
func (ApplyError) Is(err error) bool
type ExpandList ¶
type ExpandList []ExpandOp
func (*ExpandList) Count ¶
func (s *ExpandList) Count() int
func (*ExpandList) Push ¶
func (s *ExpandList) Push(o ExpandOp)
type ExpandListInterface ¶
type FieldNameCollisionError ¶
func (FieldNameCollisionError) Error ¶
func (u FieldNameCollisionError) Error() string
type GetListInterface ¶
type IndexedSubNode ¶
type IndexedSubNodes ¶
type IndexedSubNodes []*IndexedSubNode
func (IndexedSubNodes) GetIndexes ¶
func (i IndexedSubNodes) GetIndexes() [][]int
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) GetFieldValuesFor ¶
type ModelError ¶
func (ModelError) Is ¶
func (ModelError) Is(err error) bool
type StructNode ¶
type StructNode struct { Type reflect.Type VisiblePath string Index IndexedSubNodes }
func (*StructNode) BuildExpandList ¶
func (n *StructNode) BuildExpandList(el *ExpandList)
func (*StructNode) BuildGetList ¶
func (n *StructNode) BuildGetList(s *GetList)
func (*StructNode) FeedFieldValues ¶
func (*StructNode) PushSubNodes ¶
func (n *StructNode) PushSubNodes(index []int, scanned Node)
type StructNodeError ¶
func (StructNodeError) Is ¶
func (StructNodeError) Is(err error) bool
type UnsupportedTypeError ¶
func (UnsupportedTypeError) Error ¶
func (u UnsupportedTypeError) Error() string
type ValueNode ¶
func (*ValueNode) BuildExpandList ¶
func (*ValueNode) BuildExpandList(*ExpandList)
func (*ValueNode) BuildGetList ¶
func (*ValueNode) FeedFieldValues ¶
Click to show internal directories.
Click to hide internal directories.