Documentation
¶
Index ¶
- type ActedInEdge
- func (a *ActedInEdge) GetEndNode() interface{}
- func (a *ActedInEdge) GetEndNodeType() reflect.Type
- func (a *ActedInEdge) GetStartNode() interface{}
- func (a *ActedInEdge) GetStartNodeType() reflect.Type
- func (a *ActedInEdge) SetEndNode(v interface{}) error
- func (a *ActedInEdge) SetStartNode(v interface{}) error
- type Movie
- type Person
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActedInEdge ¶
type ActedInEdge struct { gogm.BaseNode Start *Person `json:"person"` End *Movie `json:"-"` Roles []string `gogm:"name=roles;properties"` }
func (*ActedInEdge) GetEndNode ¶
func (a *ActedInEdge) GetEndNode() interface{}
func (*ActedInEdge) GetEndNodeType ¶
func (a *ActedInEdge) GetEndNodeType() reflect.Type
func (*ActedInEdge) GetStartNode ¶
func (a *ActedInEdge) GetStartNode() interface{}
func (*ActedInEdge) GetStartNodeType ¶
func (a *ActedInEdge) GetStartNodeType() reflect.Type
func (*ActedInEdge) SetEndNode ¶
func (a *ActedInEdge) SetEndNode(v interface{}) error
func (*ActedInEdge) SetStartNode ¶
func (a *ActedInEdge) SetStartNode(v interface{}) error
type Movie ¶
type Movie struct { gogm.BaseNode Title string `gogm:"name=title" json:"title"` ReleasedYear int `gogm:"name=released" json:"released_year"` TagLine string `gogm:"name=tagline" json:"tag_line"` Actors []*ActedInEdge `gogm:"direction=incoming;relationship=ACTED_IN" json:"actors"` Directors []*Person `gogm:"direction=incoming;relationship=DIRECTED" json:"directors"` Producers []*Person `gogm:"direction=incoming;relationship=PRODUCED" json:"producers"` Followers []*Person `gogm:"direction=incoming;relationship=FOLLOWS" json:"followers"` Writers []*Person `gogm:"direction=incoming;relationship=WROTE" json:"writers"` Reviewers []*Person `gogm:"direction=incoming;relationship=REVIEWED" json:"reviewers"` }
type Person ¶
type Person struct { gogm.BaseNode Name string `gogm:"name=name" json:"name"` BornYear int `gogm:"name=born" json:"born_year"` Directed []*Movie `gogm:"direction=outgoing;relationship=DIRECTED" json:"-"` Produced []*Movie `gogm:"direction=outgoing;relationship=PRODUCED" json:"-"` Follows []*Movie `gogm:"direction=outgoing;relationship=FOLLOWS" json:"-"` Wrote []*Movie `gogm:"direction=outgoing;relationship=WROTE" json:"-"` Reviewed []*Movie `gogm:"direction=outgoing;relationship=REVIEWED" json:"-"` ActedIn []*ActedInEdge `gogm:"direction=outgoing;relationship=ACTED_IN" json:"-"` }
Click to show internal directories.
Click to hide internal directories.