graph

package
v0.0.0-...-c94d6c2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package graph contains structs that can be returned from the Neo4j Graph

Index

Constants

View Source
const (
	// NodeSignature is the signature byte for a Node object
	NodeSignature = 0x4E
)
View Source
const (
	// PathSignature is the signature byte for a Path object
	PathSignature = 0x50
)
View Source
const (
	// RelationshipSignature is the signature byte for a Relationship object
	RelationshipSignature = 0x52
)
View Source
const (
	// UnboundRelationshipSignature is the signature byte for a UnboundRelationship object
	UnboundRelationshipSignature = 0x72
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	NodeIdentity int64
	Labels       []string
	Properties   map[string]interface{}
}

Node Represents a Node structure

func (Node) AllFields

func (n Node) AllFields() []interface{}

AllFields gets the fields to encode for the struct

func (Node) Signature

func (n Node) Signature() int

Signature gets the signature byte for the struct

type Path

type Path struct {
	Nodes         []Node
	Relationships []UnboundRelationship
	Sequence      []int
}

Path Represents a Path structure

func (Path) AllFields

func (p Path) AllFields() []interface{}

AllFields gets the fields to encode for the struct

func (Path) Signature

func (p Path) Signature() int

Signature gets the signature byte for the struct

type Relationship

type Relationship struct {
	RelIdentity       int64
	StartNodeIdentity int64
	EndNodeIdentity   int64
	Type              string
	Properties        map[string]interface{}
}

Relationship Represents a Relationship structure

func (Relationship) AllFields

func (r Relationship) AllFields() []interface{}

AllFields gets the fields to encode for the struct

func (Relationship) Signature

func (r Relationship) Signature() int

Signature gets the signature byte for the struct

type UnboundRelationship

type UnboundRelationship struct {
	RelIdentity int64
	Type        string
	Properties  map[string]interface{}
}

UnboundRelationship Represents a UnboundRelationship structure

func (UnboundRelationship) AllFields

func (r UnboundRelationship) AllFields() []interface{}

AllFields gets the fields to encode for the struct

func (UnboundRelationship) Signature

func (r UnboundRelationship) Signature() int

Signature gets the signature byte for the struct

Jump to

Keyboard shortcuts

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