domain

package
v2.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

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:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL