Documentation ¶
Overview ¶
Code generated by GoGM 2.1.1. DO NOT EDIT
Index ¶
- type ExampleObject
- func (l *ExampleObject) LinkToExampleObject2OnFieldSpecial(target *ExampleObject2, edge *SpecialEdge) error
- func (l *ExampleObject) LinkToExampleObjectOnFieldChildren(targets ...*ExampleObject) error
- func (l *ExampleObject) LinkToExampleObjectOnFieldParents(target *ExampleObject) error
- func (l *ExampleObject) UnlinkFromExampleObject2OnFieldSpecial(target *ExampleObject2) error
- func (l *ExampleObject) UnlinkFromExampleObjectOnFieldChildren(targets ...*ExampleObject) error
- func (l *ExampleObject) UnlinkFromExampleObjectOnFieldParents(target *ExampleObject) error
- type ExampleObject2
- func (l *ExampleObject2) LinkToExampleObject2OnFieldChildren2(targets ...*ExampleObject2) error
- func (l *ExampleObject2) LinkToExampleObject2OnFieldParents2(target *ExampleObject2) error
- func (l *ExampleObject2) LinkToExampleObjectOnFieldSpecial(target *ExampleObject, edge *SpecialEdge) error
- func (l *ExampleObject2) UnlinkFromExampleObject2OnFieldChildren2(targets ...*ExampleObject2) error
- func (l *ExampleObject2) UnlinkFromExampleObject2OnFieldParents2(target *ExampleObject2) error
- func (l *ExampleObject2) UnlinkFromExampleObjectOnFieldSpecial(target *ExampleObject) error
- type OrdinaryNonGogmStruct
- type SpecialEdge
- func (s *SpecialEdge) GetEndNode() interface{}
- func (s *SpecialEdge) GetEndNodeType() reflect.Type
- func (s *SpecialEdge) GetStartNode() interface{}
- func (s *SpecialEdge) GetStartNodeType() reflect.Type
- func (s *SpecialEdge) SetEndNode(v interface{}) error
- func (s *SpecialEdge) SetStartNode(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleObject ¶
type ExampleObject struct { gogm.BaseUUIDNode Children []*ExampleObject `json:"children" gogm:"direction=incoming;relationship=test"` Parents *ExampleObject `gogm:"direction=outgoing;relationship=test" json:"parents"` Special *SpecialEdge `gogm:"direction=incoming;relationship=special" json:"special"` }
func (*ExampleObject) LinkToExampleObject2OnFieldSpecial ¶
func (l *ExampleObject) LinkToExampleObject2OnFieldSpecial(target *ExampleObject2, edge *SpecialEdge) error
LinkToExampleObject2OnFieldSpecial links ExampleObject to ExampleObject2 on the fields ExampleObject.Special and ExampleObject2.Special. note this uses the special edge SpecialEdge
func (*ExampleObject) LinkToExampleObjectOnFieldChildren ¶
func (l *ExampleObject) LinkToExampleObjectOnFieldChildren(targets ...*ExampleObject) error
LinkToExampleObjectOnFieldChildren links ExampleObject to ExampleObject on the fields ExampleObject.Children and ExampleObject.Parents
func (*ExampleObject) LinkToExampleObjectOnFieldParents ¶
func (l *ExampleObject) LinkToExampleObjectOnFieldParents(target *ExampleObject) error
LinkToExampleObjectOnFieldParents links ExampleObject to ExampleObject on the fields ExampleObject.Parents and ExampleObject.Children
func (*ExampleObject) UnlinkFromExampleObject2OnFieldSpecial ¶
func (l *ExampleObject) UnlinkFromExampleObject2OnFieldSpecial(target *ExampleObject2) error
UnlinkFromExampleObject2OnFieldSpecial unlinks ExampleObject from ExampleObject2 on the fields ExampleObject.Special and ExampleObject2.Special. also note this uses the special edge SpecialEdge
func (*ExampleObject) UnlinkFromExampleObjectOnFieldChildren ¶
func (l *ExampleObject) UnlinkFromExampleObjectOnFieldChildren(targets ...*ExampleObject) error
UnlinkFromExampleObjectOnFieldChildren unlinks ExampleObject from ExampleObject on the fields ExampleObject.Children and ExampleObject.Parents
func (*ExampleObject) UnlinkFromExampleObjectOnFieldParents ¶
func (l *ExampleObject) UnlinkFromExampleObjectOnFieldParents(target *ExampleObject) error
UnlinkFromExampleObjectOnFieldParents unlinks ExampleObject from ExampleObject on the fields ExampleObject.Parents and ExampleObject.Children
type ExampleObject2 ¶
type ExampleObject2 struct { gogm.BaseUUIDNode Children2 []*ExampleObject2 `gogm:"direction=incoming;relationship=test" json:"children_2"` Parents2 *ExampleObject2 `gogm:"direction=outgoing;relationship=test" json:"parents_2"` Special []*SpecialEdge `gogm:"direction=outgoing;relationship=special" json:"special"` }
func (*ExampleObject2) LinkToExampleObject2OnFieldChildren2 ¶
func (l *ExampleObject2) LinkToExampleObject2OnFieldChildren2(targets ...*ExampleObject2) error
LinkToExampleObject2OnFieldChildren2 links ExampleObject2 to ExampleObject2 on the fields ExampleObject2.Children2 and ExampleObject2.Parents2
func (*ExampleObject2) LinkToExampleObject2OnFieldParents2 ¶
func (l *ExampleObject2) LinkToExampleObject2OnFieldParents2(target *ExampleObject2) error
LinkToExampleObject2OnFieldParents2 links ExampleObject2 to ExampleObject2 on the fields ExampleObject2.Parents2 and ExampleObject2.Children2
func (*ExampleObject2) LinkToExampleObjectOnFieldSpecial ¶
func (l *ExampleObject2) LinkToExampleObjectOnFieldSpecial(target *ExampleObject, edge *SpecialEdge) error
LinkToExampleObjectOnFieldSpecial links ExampleObject2 to ExampleObject on the fields ExampleObject2.Special and ExampleObject.Special. note this uses the special edge SpecialEdge
func (*ExampleObject2) UnlinkFromExampleObject2OnFieldChildren2 ¶
func (l *ExampleObject2) UnlinkFromExampleObject2OnFieldChildren2(targets ...*ExampleObject2) error
UnlinkFromExampleObject2OnFieldChildren2 unlinks ExampleObject2 from ExampleObject2 on the fields ExampleObject2.Children2 and ExampleObject2.Parents2
func (*ExampleObject2) UnlinkFromExampleObject2OnFieldParents2 ¶
func (l *ExampleObject2) UnlinkFromExampleObject2OnFieldParents2(target *ExampleObject2) error
UnlinkFromExampleObject2OnFieldParents2 unlinks ExampleObject2 from ExampleObject2 on the fields ExampleObject2.Parents2 and ExampleObject2.Children2
func (*ExampleObject2) UnlinkFromExampleObjectOnFieldSpecial ¶
func (l *ExampleObject2) UnlinkFromExampleObjectOnFieldSpecial(target *ExampleObject) error
UnlinkFromExampleObjectOnFieldSpecial unlinks ExampleObject2 from ExampleObject on the fields ExampleObject2.Special and ExampleObject.Special. also note this uses the special edge SpecialEdge
type OrdinaryNonGogmStruct ¶
type OrdinaryNonGogmStruct struct {
SomeField string
}
type SpecialEdge ¶
type SpecialEdge struct { gogm.BaseNode Start *ExampleObject2 End *ExampleObject SomeField string `gogm:"name=some_field"` }
func (*SpecialEdge) GetEndNode ¶
func (s *SpecialEdge) GetEndNode() interface{}
func (*SpecialEdge) GetEndNodeType ¶
func (s *SpecialEdge) GetEndNodeType() reflect.Type
func (*SpecialEdge) GetStartNode ¶
func (s *SpecialEdge) GetStartNode() interface{}
func (*SpecialEdge) GetStartNodeType ¶
func (s *SpecialEdge) GetStartNodeType() reflect.Type
func (*SpecialEdge) SetEndNode ¶
func (s *SpecialEdge) SetEndNode(v interface{}) error
func (*SpecialEdge) SetStartNode ¶
func (s *SpecialEdge) SetStartNode(v interface{}) error