model

package
v0.0.0-...-227fe30 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersonToEntities

func PersonToEntities(items []*Person) (values []*internal.Person)

Types

type Person

type Person struct {
	gogm.BaseNode

	Name     string    `gogm:"name=name;unique" json:"name"`
	Parent   []*Person `gogm:"direction=outgoing;relationship=FAMILY" json:"parent"`
	Children []*Person `gogm:"direction=incoming;relationship=FAMILY" json:"children"`
}

func PersonToModel

func PersonToModel(item *internal.Person) *Person

func PersonToModels

func PersonToModels(items []*internal.Person) (values []*Person)

func (*Person) Entity

func (item *Person) Entity() *internal.Person

func (*Person) EntityWithFamily

func (item *Person) EntityWithFamily() *internal.Person

Jump to

Keyboard shortcuts

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