edge

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(name string, t interface{}) *inverseBuilder

From represents a reversed-edge between two vertices that has a back-reference to its source edge.

func To

func To(name string, t interface{}) *assocBuilder

To defines an association edge between two vertices.

Types

type Descriptor

type Descriptor struct {
	Tag      string      // struct tag.
	Type     string      // edge type.
	Name     string      // edge name.
	RefName  string      // ref name; inverse only.
	Ref      *Descriptor // edge reference; to/from of the same type.
	Unique   bool        // unique edge.
	Inverse  bool        // inverse edge.
	Required bool        // required on creation.
}

A Descriptor for edge configuration.

Jump to

Keyboard shortcuts

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