gremlingo

package
v0.0.0-...-a898e57 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonTrav__

type AnonTrav__ struct {
	// contains filtered or unexported fields
}

func (*AnonTrav__) AddE

func (anonymousTraversal *AnonTrav__) AddE(args ...interface{}) *GraphTraversal

AddE adds the addE step to the GraphTraversal

func (*AnonTrav__) AddV

func (anonymousTraversal *AnonTrav__) AddV(args ...interface{}) *GraphTraversal

AddV adds the addV step to the GraphTraversal

func (*AnonTrav__) Aggregate

func (anonymousTraversal *AnonTrav__) Aggregate(args ...interface{}) *GraphTraversal

Aggregate adds the aggregate step to the GraphTraversal

func (*AnonTrav__) And

func (anonymousTraversal *AnonTrav__) And(args ...interface{}) *GraphTraversal

And adds the and step to the GraphTraversal

func (*AnonTrav__) As

func (anonymousTraversal *AnonTrav__) As(args ...interface{}) *GraphTraversal

As adds the as step to the GraphTraversal

func (*AnonTrav__) Barrier

func (anonymousTraversal *AnonTrav__) Barrier(args ...interface{}) *GraphTraversal

Barrier adds the barrier step to the GraphTraversal

func (*AnonTrav__) Both

func (anonymousTraversal *AnonTrav__) Both(args ...interface{}) *GraphTraversal

Both adds the both step to the GraphTraversal

func (*AnonTrav__) BothE

func (anonymousTraversal *AnonTrav__) BothE(args ...interface{}) *GraphTraversal

BothE adds the bothE step to the GraphTraversal

func (*AnonTrav__) BothV

func (anonymousTraversal *AnonTrav__) BothV(args ...interface{}) *GraphTraversal

BothV adds the bothV step to the GraphTraversal

func (*AnonTrav__) Branch

func (anonymousTraversal *AnonTrav__) Branch(args ...interface{}) *GraphTraversal

Branch adds the branch step to the GraphTraversal

func (*AnonTrav__) By

func (anonymousTraversal *AnonTrav__) By(args ...interface{}) *GraphTraversal

By adds the by step to the GraphTraversal

func (*AnonTrav__) Cap

func (anonymousTraversal *AnonTrav__) Cap(args ...interface{}) *GraphTraversal

Cap adds the cap step to the GraphTraversal

func (*AnonTrav__) Choose

func (anonymousTraversal *AnonTrav__) Choose(args ...interface{}) *GraphTraversal

Choose adds the choose step to the GraphTraversal

func (*AnonTrav__) Coalesce

func (anonymousTraversal *AnonTrav__) Coalesce(args ...interface{}) *GraphTraversal

Coalesce adds the coalesce step to the GraphTraversal

func (*AnonTrav__) Coin

func (anonymousTraversal *AnonTrav__) Coin(args ...interface{}) *GraphTraversal

Coin adds the coint step to the GraphTraversal

func (*AnonTrav__) ConnectedComponent

func (anonymousTraversal *AnonTrav__) ConnectedComponent(args ...interface{}) *GraphTraversal

ConnectedComponent adds the connectedComponent step to the GraphTraversal

func (*AnonTrav__) Constant

func (anonymousTraversal *AnonTrav__) Constant(args ...interface{}) *GraphTraversal

Constant adds the constant step to the GraphTraversal

func (*AnonTrav__) Count

func (anonymousTraversal *AnonTrav__) Count(args ...interface{}) *GraphTraversal

Count adds the count step to the GraphTraversal

func (*AnonTrav__) CyclicPath

func (anonymousTraversal *AnonTrav__) CyclicPath(args ...interface{}) *GraphTraversal

CyclicPath adds the cyclicPath step to the GraphTraversal

func (*AnonTrav__) Dedup

func (anonymousTraversal *AnonTrav__) Dedup(args ...interface{}) *GraphTraversal

Dedup adds the dedup step to the GraphTraversal

func (*AnonTrav__) Drop

func (anonymousTraversal *AnonTrav__) Drop(args ...interface{}) *GraphTraversal

Drop adds the drop step to the GraphTraversal

func (*AnonTrav__) ElementMap

func (anonymousTraversal *AnonTrav__) ElementMap(args ...interface{}) *GraphTraversal

ElementMap adds the elementMap step to the GraphTraversal

func (*AnonTrav__) Emit

func (anonymousTraversal *AnonTrav__) Emit(args ...interface{}) *GraphTraversal

Emit adds the emit step to the GraphTraversal

func (*AnonTrav__) Filter

func (anonymousTraversal *AnonTrav__) Filter(args ...interface{}) *GraphTraversal

Filter adds the filter step to the GraphTraversal

func (*AnonTrav__) FlatMap

func (anonymousTraversal *AnonTrav__) FlatMap(args ...interface{}) *GraphTraversal

FlatMap adds the flatMap step to the GraphTraversal

func (*AnonTrav__) Fold

func (anonymousTraversal *AnonTrav__) Fold(args ...interface{}) *GraphTraversal

Fold adds the fold step to the GraphTraversal

func (*AnonTrav__) From

func (anonymousTraversal *AnonTrav__) From(args ...interface{}) *GraphTraversal

From adds the from step to the GraphTraversal

func (*AnonTrav__) Group

func (anonymousTraversal *AnonTrav__) Group(args ...interface{}) *GraphTraversal

Group adds the group step to the GraphTraversal

func (*AnonTrav__) GroupCount

func (anonymousTraversal *AnonTrav__) GroupCount(args ...interface{}) *GraphTraversal

GroupCount adds the groupCount step to the GraphTraversal

func (*AnonTrav__) Has

func (anonymousTraversal *AnonTrav__) Has(args ...interface{}) *GraphTraversal

Has adds the has step to the GraphTraversal

func (*AnonTrav__) HasId

func (anonymousTraversal *AnonTrav__) HasId(args ...interface{}) *GraphTraversal

HasId adds the hasId step to the GraphTraversal

func (*AnonTrav__) HasKey

func (anonymousTraversal *AnonTrav__) HasKey(args ...interface{}) *GraphTraversal

HasKey adds the hasKey step to the GraphTraversal

func (*AnonTrav__) HasLabel

func (anonymousTraversal *AnonTrav__) HasLabel(args ...interface{}) *GraphTraversal

HasLabel adds the hasLabel step to the GraphTraversal

func (*AnonTrav__) HasNot

func (anonymousTraversal *AnonTrav__) HasNot(args ...interface{}) *GraphTraversal

HasNot adds the hasNot step to the GraphTraversal

func (*AnonTrav__) HasValue

func (anonymousTraversal *AnonTrav__) HasValue(args ...interface{}) *GraphTraversal

HasValue adds the hasValue step to the GraphTraversal

func (*AnonTrav__) Id

func (anonymousTraversal *AnonTrav__) Id(args ...interface{}) *GraphTraversal

Id adds the id step to the GraphTraversal

func (*AnonTrav__) Identity

func (anonymousTraversal *AnonTrav__) Identity(args ...interface{}) *GraphTraversal

Identity adds the identity step to the GraphTraversal

func (*AnonTrav__) In

func (anonymousTraversal *AnonTrav__) In(args ...interface{}) *GraphTraversal

In adds the in step to the GraphTraversal

func (*AnonTrav__) InE

func (anonymousTraversal *AnonTrav__) InE(args ...interface{}) *GraphTraversal

InE adds the inE step to the GraphTraversal

func (*AnonTrav__) InV

func (anonymousTraversal *AnonTrav__) InV(args ...interface{}) *GraphTraversal

InV adds the inV step to the GraphTraversal

func (*AnonTrav__) Index

func (anonymousTraversal *AnonTrav__) Index(args ...interface{}) *GraphTraversal

Index adds the index step to the GraphTraversal

func (*AnonTrav__) Inject

func (anonymousTraversal *AnonTrav__) Inject(args ...interface{}) *GraphTraversal

Inject adds the inject step to the GraphTraversal

func (*AnonTrav__) Is

func (anonymousTraversal *AnonTrav__) Is(args ...interface{}) *GraphTraversal

Is adds the is step to the GraphTraversal

func (*AnonTrav__) Key

func (anonymousTraversal *AnonTrav__) Key(args ...interface{}) *GraphTraversal

Key adds the key step to the GraphTraversal

func (*AnonTrav__) Label

func (anonymousTraversal *AnonTrav__) Label(args ...interface{}) *GraphTraversal

Label adds the label step to the GraphTraversal

func (*AnonTrav__) Limit

func (anonymousTraversal *AnonTrav__) Limit(args ...interface{}) *GraphTraversal

Limit adds the limit step to the GraphTraversal

func (*AnonTrav__) Local

func (anonymousTraversal *AnonTrav__) Local(args ...interface{}) *GraphTraversal

Local adds the local step to the GraphTraversal

func (*AnonTrav__) Loops

func (anonymousTraversal *AnonTrav__) Loops(args ...interface{}) *GraphTraversal

Loops adds the loops step to the GraphTraversal

func (*AnonTrav__) Map

func (anonymousTraversal *AnonTrav__) Map(args ...interface{}) *GraphTraversal

Map adds the map step to the GraphTraversal

func (*AnonTrav__) Match

func (anonymousTraversal *AnonTrav__) Match(args ...interface{}) *GraphTraversal

Match adds the match step to the GraphTraversal

func (*AnonTrav__) Math

func (anonymousTraversal *AnonTrav__) Math(args ...interface{}) *GraphTraversal

Math adds the math step to the GraphTraversal

func (*AnonTrav__) Max

func (anonymousTraversal *AnonTrav__) Max(args ...interface{}) *GraphTraversal

Max adds the max step to the GraphTraversal

func (*AnonTrav__) Mean

func (anonymousTraversal *AnonTrav__) Mean(args ...interface{}) *GraphTraversal

Mean adds the mean step to the GraphTraversal

func (*AnonTrav__) Min

func (anonymousTraversal *AnonTrav__) Min(args ...interface{}) *GraphTraversal

Min adds the min step to the GraphTraversal

func (*AnonTrav__) None

func (anonymousTraversal *AnonTrav__) None(args ...interface{}) *GraphTraversal

None adds the none step to the GraphTraversal

func (*AnonTrav__) Not

func (anonymousTraversal *AnonTrav__) Not(args ...interface{}) *GraphTraversal

Not adds the not step to the GraphTraversal

func (*AnonTrav__) Option

func (anonymousTraversal *AnonTrav__) Option(args ...interface{}) *GraphTraversal

Option adds the option step to the GraphTraversal

func (*AnonTrav__) Optional

func (anonymousTraversal *AnonTrav__) Optional(args ...interface{}) *GraphTraversal

Optional adds the optional step to the GraphTraversal

func (*AnonTrav__) Or

func (anonymousTraversal *AnonTrav__) Or(args ...interface{}) *GraphTraversal

Or adds the or step to the GraphTraversal

func (*AnonTrav__) Order

func (anonymousTraversal *AnonTrav__) Order(args ...interface{}) *GraphTraversal

Order adds the order step to the GraphTraversal

func (*AnonTrav__) OtherV

func (anonymousTraversal *AnonTrav__) OtherV(args ...interface{}) *GraphTraversal

OtherV adds the otherV step to the GraphTraversal

func (*AnonTrav__) Out

func (anonymousTraversal *AnonTrav__) Out(args ...interface{}) *GraphTraversal

Out adds the out step to the GraphTraversal

func (*AnonTrav__) OutE

func (anonymousTraversal *AnonTrav__) OutE(args ...interface{}) *GraphTraversal

OutE adds the outE step to the GraphTraversal

func (*AnonTrav__) OutV

func (anonymousTraversal *AnonTrav__) OutV(args ...interface{}) *GraphTraversal

OutV adds the outV step to the GraphTraversal

func (*AnonTrav__) PageRank

func (anonymousTraversal *AnonTrav__) PageRank(args ...interface{}) *GraphTraversal

PageRank adds the pageRank step to the GraphTraversal

func (*AnonTrav__) Path

func (anonymousTraversal *AnonTrav__) Path(args ...interface{}) *GraphTraversal

Path adds the path step to the GraphTraversal

func (*AnonTrav__) PeerPressure

func (anonymousTraversal *AnonTrav__) PeerPressure(args ...interface{}) *GraphTraversal

PeerPressure adds the peerPressure step to the GraphTraversal

func (*AnonTrav__) Profile

func (anonymousTraversal *AnonTrav__) Profile(args ...interface{}) *GraphTraversal

Profile adds the profile step to the GraphTraversal

func (*AnonTrav__) Program

func (anonymousTraversal *AnonTrav__) Program(args ...interface{}) *GraphTraversal

Program adds the program step to the GraphTraversal

func (*AnonTrav__) Project

func (anonymousTraversal *AnonTrav__) Project(args ...interface{}) *GraphTraversal

Project adds the project step to the GraphTraversal

func (*AnonTrav__) Properties

func (anonymousTraversal *AnonTrav__) Properties(args ...interface{}) *GraphTraversal

Properties adds the properties step to the GraphTraversal

func (*AnonTrav__) Property

func (anonymousTraversal *AnonTrav__) Property(args ...interface{}) *GraphTraversal

Property adds the property step to the GraphTraversal

func (*AnonTrav__) PropertyMap

func (anonymousTraversal *AnonTrav__) PropertyMap(args ...interface{}) *GraphTraversal

PropertyMap adds the propertyMap step to the GraphTraversal

func (*AnonTrav__) Range

func (anonymousTraversal *AnonTrav__) Range(args ...interface{}) *GraphTraversal

Range adds the range step to the GraphTraversal

func (*AnonTrav__) Read

func (anonymousTraversal *AnonTrav__) Read(args ...interface{}) *GraphTraversal

Read adds the read step to the GraphTraversal

func (*AnonTrav__) Repeat

func (anonymousTraversal *AnonTrav__) Repeat(args ...interface{}) *GraphTraversal

Repeat adds the repeat step to the GraphTraversal

func (*AnonTrav__) Sack

func (anonymousTraversal *AnonTrav__) Sack(args ...interface{}) *GraphTraversal

Sack adds the sack step to the GraphTraversal

func (*AnonTrav__) Sample

func (anonymousTraversal *AnonTrav__) Sample(args ...interface{}) *GraphTraversal

Sample adds the sample step to the GraphTraversal

func (*AnonTrav__) Select

func (anonymousTraversal *AnonTrav__) Select(args ...interface{}) *GraphTraversal

Select adds the select step to the GraphTraversal

func (*AnonTrav__) ShortestPath

func (anonymousTraversal *AnonTrav__) ShortestPath(args ...interface{}) *GraphTraversal

ShortestPath adds the shortestPath step to the GraphTraversal

func (*AnonTrav__) SideEffect

func (anonymousTraversal *AnonTrav__) SideEffect(args ...interface{}) *GraphTraversal

SideEffect adds the sideEffect step to the GraphTraversal

func (*AnonTrav__) SimplePath

func (anonymousTraversal *AnonTrav__) SimplePath(args ...interface{}) *GraphTraversal

SimplePath adds the simplePath step to the GraphTraversal

func (*AnonTrav__) Skip

func (anonymousTraversal *AnonTrav__) Skip(args ...interface{}) *GraphTraversal

Skip adds the skip step to the GraphTraversal

func (*AnonTrav__) Store

func (anonymousTraversal *AnonTrav__) Store(args ...interface{}) *GraphTraversal

Store adds the store step to the GraphTraversal

func (*AnonTrav__) Subgraph

func (anonymousTraversal *AnonTrav__) Subgraph(args ...interface{}) *GraphTraversal

Subgraph adds the subgraph step to the GraphTraversal

func (*AnonTrav__) Sum

func (anonymousTraversal *AnonTrav__) Sum(args ...interface{}) *GraphTraversal

Sum adds the sum step to the GraphTraversal

func (*AnonTrav__) Tail

func (anonymousTraversal *AnonTrav__) Tail(args ...interface{}) *GraphTraversal

Tail adds the tail step to the GraphTraversal

func (*AnonTrav__) TimeLimit

func (anonymousTraversal *AnonTrav__) TimeLimit(args ...interface{}) *GraphTraversal

TimeLimit adds the timeLimit step to the GraphTraversal

func (*AnonTrav__) Times

func (anonymousTraversal *AnonTrav__) Times(args ...interface{}) *GraphTraversal

Times adds the times step to the GraphTraversal

func (*AnonTrav__) To

func (anonymousTraversal *AnonTrav__) To(args ...interface{}) *GraphTraversal

To adds the to step to the GraphTraversal

func (*AnonTrav__) ToE

func (anonymousTraversal *AnonTrav__) ToE(args ...interface{}) *GraphTraversal

ToE adds the toE step to the GraphTraversal

func (*AnonTrav__) ToV

func (anonymousTraversal *AnonTrav__) ToV(args ...interface{}) *GraphTraversal

ToV adds the toV step to the GraphTraversal

func (*AnonTrav__) Tree

func (anonymousTraversal *AnonTrav__) Tree(args ...interface{}) *GraphTraversal

Tree adds the tree step to the GraphTraversal

func (*AnonTrav__) Unfold

func (anonymousTraversal *AnonTrav__) Unfold(args ...interface{}) *GraphTraversal

Unfold adds the unfold step to the GraphTraversal

func (*AnonTrav__) Union

func (anonymousTraversal *AnonTrav__) Union(args ...interface{}) *GraphTraversal

Union adds the union step to the GraphTraversal

func (*AnonTrav__) Until

func (anonymousTraversal *AnonTrav__) Until(args ...interface{}) *GraphTraversal

Until adds the until step to the GraphTraversal

func (*AnonTrav__) V

func (anonymousTraversal *AnonTrav__) V(args ...interface{}) *GraphTraversal

V adds the v step to the GraphTraversal

func (*AnonTrav__) Value

func (anonymousTraversal *AnonTrav__) Value(args ...interface{}) *GraphTraversal

Value adds the value step to the GraphTraversal

func (*AnonTrav__) ValueMap

func (anonymousTraversal *AnonTrav__) ValueMap(args ...interface{}) *GraphTraversal

ValueMap adds the valueMap step to the GraphTraversal

func (*AnonTrav__) Values

func (anonymousTraversal *AnonTrav__) Values(args ...interface{}) *GraphTraversal

Values adds the values step to the GraphTraversal

func (*AnonTrav__) Where

func (anonymousTraversal *AnonTrav__) Where(args ...interface{}) *GraphTraversal

Where adds the where step to the GraphTraversal

func (*AnonTrav__) With

func (anonymousTraversal *AnonTrav__) With(args ...interface{}) *GraphTraversal

With adds the with step to the GraphTraversal

func (*AnonTrav__) Write

func (anonymousTraversal *AnonTrav__) Write(args ...interface{}) *GraphTraversal

Write adds the write step to the GraphTraversal

type AnonymousTraversalSource

type AnonymousTraversalSource struct {
}

func Traversal_

func Traversal_() *AnonymousTraversalSource

func (*AnonymousTraversalSource) WithRemote

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is used to connect and interact with a Gremlin-supported server.

func NewClient

func NewClient(host string, port int, configurations ...func(settings *ClientSettings)) (*Client, error)

NewClient creates a Client and configures it with the given parameters.

func (*Client) Close

func (client *Client) Close() error

Close closes the client via connection

func (*Client) Submit

func (client *Client) Submit(traversalString string) (ResultSet, error)

Submit submits a Gremlin script to the server and returns a ResultSet

func (*Client) SubmitBytecode

func (client *Client) SubmitBytecode(bytecode *bytecode) (ResultSet, error)

SubmitBytecode submits bytecode to the server to execute and returns a ResultSet

type ClientSettings

type ClientSettings struct {
	TransporterType TransporterType
	LogVerbosity    LogVerbosity
	Logger          Logger
	Language        language.Tag
}

ClientSettings is used to modify a Client's settings on initialization.

type DataType

type DataType uint8

DataType graphBinary types

const (
	NullType           DataType = 0xFE
	IntType            DataType = 0x01
	LongType           DataType = 0x02
	StringType         DataType = 0x03
	DoubleType         DataType = 0x07
	FloatType          DataType = 0x08
	ListType           DataType = 0x09
	MapType            DataType = 0x0a
	UUIDType           DataType = 0x0c
	BytecodeType       DataType = 0x15
	TraverserType      DataType = 0x21
	ByteType           DataType = 0x24
	ShortType          DataType = 0x26
	BooleanType        DataType = 0x27
	BigIntegerType     DataType = 0x23
	VertexType         DataType = 0x11
	EdgeType           DataType = 0x0d
	PropertyType       DataType = 0x0f
	VertexPropertyType DataType = 0x12
	PathType           DataType = 0x0e
	SetType            DataType = 0x0b
)

DataType defined as constants

type DriverRemoteConnection

type DriverRemoteConnection struct {
	// contains filtered or unexported fields
}

DriverRemoteConnection is a remote connection

func NewDriverRemoteConnection

func NewDriverRemoteConnection(
	host string,
	port int,
	configurations ...func(settings *DriverRemoteConnectionSettings)) (*DriverRemoteConnection, error)

NewDriverRemoteConnection creates a new DriverRemoteConnection. If no custom connection settings are passed in, a connection will be created with "g" as the default TraversalSource, Gorilla as the default Transporter, Info as the default LogVerbosity, a default logger stuct, and English and as the default language

func (*DriverRemoteConnection) Close

func (driver *DriverRemoteConnection) Close() error

Close closes the DriverRemoteConnection

func (*DriverRemoteConnection) Submit

func (driver *DriverRemoteConnection) Submit(traversalString string) (ResultSet, error)

Submit sends a string traversal to the server

func (*DriverRemoteConnection) SubmitBytecode

func (driver *DriverRemoteConnection) SubmitBytecode(bytecode *bytecode) (ResultSet, error)

SubmitBytecode sends a bytecode traversal to the server

type DriverRemoteConnectionSettings

type DriverRemoteConnectionSettings struct {
	TraversalSource string
	Username        string
	Password        string
	TransporterType TransporterType
	LogVerbosity    LogVerbosity
	Logger          Logger
	Language        language.Tag

	// TODO: Figure out exact extent of configurability for these and expose appropriate types/helpers
	Protocol   protocol
	Serializer serializer
}

DriverRemoteConnectionSettings are used to configure the DriverRemoteConnection

type Edge

type Edge struct {
	Element
	// contains filtered or unexported fields
}

Edge links two Vertex structs along with its Property objects. An edge has both a direction and a label.

func (*Edge) String

func (e *Edge) String() string

type Element

type Element struct {
	// contains filtered or unexported fields
}

Element is the base structure for both Vertex and Edge. The inherited identifier must be unique to the inheriting classes.

type Graph

type Graph struct {
}

type GraphTraversal

type GraphTraversal struct {
	*Traversal
}

func NewGraphTraversal

func NewGraphTraversal(graph *Graph, traversalStrategies *TraversalStrategies, bytecode *bytecode, remote *DriverRemoteConnection) *GraphTraversal

func (*GraphTraversal) AddE

func (g *GraphTraversal) AddE(args ...interface{}) *GraphTraversal

AddE adds the addE step to the GraphTraversal

func (*GraphTraversal) AddV

func (g *GraphTraversal) AddV(args ...interface{}) *GraphTraversal

AddV adds the addV step to the GraphTraversal

func (*GraphTraversal) Aggregate

func (g *GraphTraversal) Aggregate(args ...interface{}) *GraphTraversal

Aggregate adds the aggregate step to the GraphTraversal

func (*GraphTraversal) And

func (g *GraphTraversal) And(args ...interface{}) *GraphTraversal

And adds the and step to the GraphTraversal

func (*GraphTraversal) As

func (g *GraphTraversal) As(args ...interface{}) *GraphTraversal

As adds the as step to the GraphTraversal

func (*GraphTraversal) Barrier

func (g *GraphTraversal) Barrier(args ...interface{}) *GraphTraversal

Barrier adds the barrier step to the GraphTraversal

func (*GraphTraversal) Both

func (g *GraphTraversal) Both(args ...interface{}) *GraphTraversal

Both adds the both step to the GraphTraversal

func (*GraphTraversal) BothE

func (g *GraphTraversal) BothE(args ...interface{}) *GraphTraversal

BothE adds the bothE step to the GraphTraversal

func (*GraphTraversal) BothV

func (g *GraphTraversal) BothV(args ...interface{}) *GraphTraversal

BothV adds the bothV step to the GraphTraversal

func (*GraphTraversal) Branch

func (g *GraphTraversal) Branch(args ...interface{}) *GraphTraversal

Branch adds the branch step to the GraphTraversal

func (*GraphTraversal) By

func (g *GraphTraversal) By(args ...interface{}) *GraphTraversal

By adds the by step to the GraphTraversal

func (*GraphTraversal) Cap

func (g *GraphTraversal) Cap(args ...interface{}) *GraphTraversal

Cap adds the cap step to the GraphTraversal

func (*GraphTraversal) Choose

func (g *GraphTraversal) Choose(args ...interface{}) *GraphTraversal

Choose adds the choose step to the GraphTraversal

func (*GraphTraversal) Clone

func (g *GraphTraversal) Clone() *GraphTraversal

Clone make a copy of a traversal that is reset for iteration.

func (*GraphTraversal) Coalesce

func (g *GraphTraversal) Coalesce(args ...interface{}) *GraphTraversal

Coalesce adds the coalesce step to the GraphTraversal

func (*GraphTraversal) Coin

func (g *GraphTraversal) Coin(args ...interface{}) *GraphTraversal

Coin adds the coint step to the GraphTraversal

func (*GraphTraversal) ConnectedComponent

func (g *GraphTraversal) ConnectedComponent(args ...interface{}) *GraphTraversal

ConnectedComponent adds the connectedComponent step to the GraphTraversal

func (*GraphTraversal) Constant

func (g *GraphTraversal) Constant(args ...interface{}) *GraphTraversal

Constant adds the constant step to the GraphTraversal

func (*GraphTraversal) Count

func (g *GraphTraversal) Count(args ...interface{}) *GraphTraversal

Count adds the count step to the GraphTraversal

func (*GraphTraversal) CyclicPath

func (g *GraphTraversal) CyclicPath(args ...interface{}) *GraphTraversal

CyclicPath adds the cyclicPath step to the GraphTraversal

func (*GraphTraversal) Dedup

func (g *GraphTraversal) Dedup(args ...interface{}) *GraphTraversal

Dedup adds the dedup step to the GraphTraversal

func (*GraphTraversal) Drop

func (g *GraphTraversal) Drop(args ...interface{}) *GraphTraversal

Drop adds the drop step to the GraphTraversal

func (*GraphTraversal) ElementMap

func (g *GraphTraversal) ElementMap(args ...interface{}) *GraphTraversal

ElementMap adds the elementMap step to the GraphTraversal

func (*GraphTraversal) Emit

func (g *GraphTraversal) Emit(args ...interface{}) *GraphTraversal

Emit adds the emit step to the GraphTraversal

func (*GraphTraversal) Filter

func (g *GraphTraversal) Filter(args ...interface{}) *GraphTraversal

Filter adds the filter step to the GraphTraversal

func (*GraphTraversal) FlatMap

func (g *GraphTraversal) FlatMap(args ...interface{}) *GraphTraversal

FlatMap adds the flatMap step to the GraphTraversal

func (*GraphTraversal) Fold

func (g *GraphTraversal) Fold(args ...interface{}) *GraphTraversal

Fold adds the fold step to the GraphTraversal

func (*GraphTraversal) From

func (g *GraphTraversal) From(args ...interface{}) *GraphTraversal

From adds the from step to the GraphTraversal

func (*GraphTraversal) Group

func (g *GraphTraversal) Group(args ...interface{}) *GraphTraversal

Group adds the group step to the GraphTraversal

func (*GraphTraversal) GroupCount

func (g *GraphTraversal) GroupCount(args ...interface{}) *GraphTraversal

GroupCount adds the groupCount step to the GraphTraversal

func (*GraphTraversal) Has

func (g *GraphTraversal) Has(args ...interface{}) *GraphTraversal

Has adds the has step to the GraphTraversal

func (*GraphTraversal) HasId

func (g *GraphTraversal) HasId(args ...interface{}) *GraphTraversal

HasId adds the hasId step to the GraphTraversal

func (*GraphTraversal) HasKey

func (g *GraphTraversal) HasKey(args ...interface{}) *GraphTraversal

HasKey adds the hasKey step to the GraphTraversal

func (*GraphTraversal) HasLabel

func (g *GraphTraversal) HasLabel(args ...interface{}) *GraphTraversal

HasLabel adds the hasLabel step to the GraphTraversal

func (*GraphTraversal) HasNot

func (g *GraphTraversal) HasNot(args ...interface{}) *GraphTraversal

HasNot adds the hasNot step to the GraphTraversal

func (*GraphTraversal) HasValue

func (g *GraphTraversal) HasValue(args ...interface{}) *GraphTraversal

HasValue adds the hasValue step to the GraphTraversal

func (*GraphTraversal) Id

func (g *GraphTraversal) Id(args ...interface{}) *GraphTraversal

Id adds the id step to the GraphTraversal

func (*GraphTraversal) Identity

func (g *GraphTraversal) Identity(args ...interface{}) *GraphTraversal

Identity adds the identity step to the GraphTraversal

func (*GraphTraversal) In

func (g *GraphTraversal) In(args ...interface{}) *GraphTraversal

In adds the in step to the GraphTraversal

func (*GraphTraversal) InE

func (g *GraphTraversal) InE(args ...interface{}) *GraphTraversal

InE adds the inE step to the GraphTraversal

func (*GraphTraversal) InV

func (g *GraphTraversal) InV(args ...interface{}) *GraphTraversal

InV adds the inV step to the GraphTraversal

func (*GraphTraversal) Index

func (g *GraphTraversal) Index(args ...interface{}) *GraphTraversal

Index adds the index step to the GraphTraversal

func (*GraphTraversal) Inject

func (g *GraphTraversal) Inject(args ...interface{}) *GraphTraversal

Inject adds the inject step to the GraphTraversal

func (*GraphTraversal) Is

func (g *GraphTraversal) Is(args ...interface{}) *GraphTraversal

Is adds the is step to the GraphTraversal

func (*GraphTraversal) Key

func (g *GraphTraversal) Key(args ...interface{}) *GraphTraversal

Key adds the key step to the GraphTraversal

func (*GraphTraversal) Label

func (g *GraphTraversal) Label(args ...interface{}) *GraphTraversal

Label adds the label step to the GraphTraversal

func (*GraphTraversal) Limit

func (g *GraphTraversal) Limit(args ...interface{}) *GraphTraversal

Limit adds the limit step to the GraphTraversal

func (*GraphTraversal) Local

func (g *GraphTraversal) Local(args ...interface{}) *GraphTraversal

Local adds the local step to the GraphTraversal

func (*GraphTraversal) Loops

func (g *GraphTraversal) Loops(args ...interface{}) *GraphTraversal

Loops adds the loops step to the GraphTraversal

func (*GraphTraversal) Map

func (g *GraphTraversal) Map(args ...interface{}) *GraphTraversal

Map adds the map step to the GraphTraversal

func (*GraphTraversal) Match

func (g *GraphTraversal) Match(args ...interface{}) *GraphTraversal

Match adds the match step to the GraphTraversal

func (*GraphTraversal) Math

func (g *GraphTraversal) Math(args ...interface{}) *GraphTraversal

Math adds the math step to the GraphTraversal

func (*GraphTraversal) Max

func (g *GraphTraversal) Max(args ...interface{}) *GraphTraversal

Max adds the max step to the GraphTraversal

func (*GraphTraversal) Mean

func (g *GraphTraversal) Mean(args ...interface{}) *GraphTraversal

Mean adds the mean step to the GraphTraversal

func (*GraphTraversal) Min

func (g *GraphTraversal) Min(args ...interface{}) *GraphTraversal

Min adds the min step to the GraphTraversal

func (*GraphTraversal) None

func (g *GraphTraversal) None(args ...interface{}) *GraphTraversal

None adds the none step to the GraphTraversal

func (*GraphTraversal) Not

func (g *GraphTraversal) Not(args ...interface{}) *GraphTraversal

Not adds the not step to the GraphTraversal

func (*GraphTraversal) Option

func (g *GraphTraversal) Option(args ...interface{}) *GraphTraversal

Option adds the option step to the GraphTraversal

func (*GraphTraversal) Optional

func (g *GraphTraversal) Optional(args ...interface{}) *GraphTraversal

Optional adds the optional step to the GraphTraversal

func (*GraphTraversal) Or

func (g *GraphTraversal) Or(args ...interface{}) *GraphTraversal

Or adds the or step to the GraphTraversal

func (*GraphTraversal) Order

func (g *GraphTraversal) Order(args ...interface{}) *GraphTraversal

Order adds the order step to the GraphTraversal

func (*GraphTraversal) OtherV

func (g *GraphTraversal) OtherV(args ...interface{}) *GraphTraversal

OtherV adds the otherV step to the GraphTraversal

func (*GraphTraversal) Out

func (g *GraphTraversal) Out(args ...interface{}) *GraphTraversal

Out adds the out step to the GraphTraversal

func (*GraphTraversal) OutE

func (g *GraphTraversal) OutE(args ...interface{}) *GraphTraversal

OutE adds the outE step to the GraphTraversal

func (*GraphTraversal) OutV

func (g *GraphTraversal) OutV(args ...interface{}) *GraphTraversal

OutV adds the outV step to the GraphTraversal

func (*GraphTraversal) PageRank

func (g *GraphTraversal) PageRank(args ...interface{}) *GraphTraversal

PageRank adds the pageRank step to the GraphTraversal

func (*GraphTraversal) Path

func (g *GraphTraversal) Path(args ...interface{}) *GraphTraversal

Path adds the path step to the GraphTraversal

func (*GraphTraversal) PeerPressure

func (g *GraphTraversal) PeerPressure(args ...interface{}) *GraphTraversal

PeerPressure adds the peerPressure step to the GraphTraversal

func (*GraphTraversal) Profile

func (g *GraphTraversal) Profile(args ...interface{}) *GraphTraversal

Profile adds the profile step to the GraphTraversal

func (*GraphTraversal) Program

func (g *GraphTraversal) Program(args ...interface{}) *GraphTraversal

Program adds the program step to the GraphTraversal

func (*GraphTraversal) Project

func (g *GraphTraversal) Project(args ...interface{}) *GraphTraversal

Project adds the project step to the GraphTraversal

func (*GraphTraversal) Properties

func (g *GraphTraversal) Properties(args ...interface{}) *GraphTraversal

Properties adds the properties step to the GraphTraversal

func (*GraphTraversal) Property

func (g *GraphTraversal) Property(args ...interface{}) *GraphTraversal

Property adds the property step to the GraphTraversal

func (*GraphTraversal) PropertyMap

func (g *GraphTraversal) PropertyMap(args ...interface{}) *GraphTraversal

PropertyMap adds the propertyMap step to the GraphTraversal

func (*GraphTraversal) Range

func (g *GraphTraversal) Range(args ...interface{}) *GraphTraversal

Range adds the range step to the GraphTraversal

func (*GraphTraversal) Read

func (g *GraphTraversal) Read(args ...interface{}) *GraphTraversal

Read adds the read step to the GraphTraversal

func (*GraphTraversal) Repeat

func (g *GraphTraversal) Repeat(args ...interface{}) *GraphTraversal

Repeat adds the repeat step to the GraphTraversal

func (*GraphTraversal) Sack

func (g *GraphTraversal) Sack(args ...interface{}) *GraphTraversal

Sack adds the sack step to the GraphTraversal

func (*GraphTraversal) Sample

func (g *GraphTraversal) Sample(args ...interface{}) *GraphTraversal

Sample adds the sample step to the GraphTraversal

func (*GraphTraversal) Select

func (g *GraphTraversal) Select(args ...interface{}) *GraphTraversal

Select adds the select step to the GraphTraversal

func (*GraphTraversal) ShortestPath

func (g *GraphTraversal) ShortestPath(args ...interface{}) *GraphTraversal

ShortestPath adds the shortestPath step to the GraphTraversal

func (*GraphTraversal) SideEffect

func (g *GraphTraversal) SideEffect(args ...interface{}) *GraphTraversal

SideEffect adds the sideEffect step to the GraphTraversal

func (*GraphTraversal) SimplePath

func (g *GraphTraversal) SimplePath(args ...interface{}) *GraphTraversal

SimplePath adds the simplePath step to the GraphTraversal

func (*GraphTraversal) Skip

func (g *GraphTraversal) Skip(args ...interface{}) *GraphTraversal

Skip adds the skip step to the GraphTraversal

func (*GraphTraversal) Store

func (g *GraphTraversal) Store(args ...interface{}) *GraphTraversal

Store adds the store step to the GraphTraversal

func (*GraphTraversal) Subgraph

func (g *GraphTraversal) Subgraph(args ...interface{}) *GraphTraversal

Subgraph adds the subgraph step to the GraphTraversal

func (*GraphTraversal) Sum

func (g *GraphTraversal) Sum(args ...interface{}) *GraphTraversal

Sum adds the sum step to the GraphTraversal

func (*GraphTraversal) Tail

func (g *GraphTraversal) Tail(args ...interface{}) *GraphTraversal

Tail adds the tail step to the GraphTraversal

func (*GraphTraversal) TimeLimit

func (g *GraphTraversal) TimeLimit(args ...interface{}) *GraphTraversal

TimeLimit adds the timeLimit step to the GraphTraversal

func (*GraphTraversal) Times

func (g *GraphTraversal) Times(args ...interface{}) *GraphTraversal

Times adds the times step to the GraphTraversal

func (*GraphTraversal) To

func (g *GraphTraversal) To(args ...interface{}) *GraphTraversal

To adds the to step to the GraphTraversal

func (*GraphTraversal) ToE

func (g *GraphTraversal) ToE(args ...interface{}) *GraphTraversal

ToE adds the toE step to the GraphTraversal

func (*GraphTraversal) ToV

func (g *GraphTraversal) ToV(args ...interface{}) *GraphTraversal

ToV adds the toV step to the GraphTraversal

func (*GraphTraversal) Tree

func (g *GraphTraversal) Tree(args ...interface{}) *GraphTraversal

Tree adds the tree step to the GraphTraversal

func (*GraphTraversal) Unfold

func (g *GraphTraversal) Unfold(args ...interface{}) *GraphTraversal

Unfold adds the unfold step to the GraphTraversal

func (*GraphTraversal) Union

func (g *GraphTraversal) Union(args ...interface{}) *GraphTraversal

Union adds the union step to the GraphTraversal

func (*GraphTraversal) Until

func (g *GraphTraversal) Until(args ...interface{}) *GraphTraversal

Until adds the until step to the GraphTraversal

func (*GraphTraversal) V

func (g *GraphTraversal) V(args ...interface{}) *GraphTraversal

V adds the v step to the GraphTraversal

func (*GraphTraversal) Value

func (g *GraphTraversal) Value(args ...interface{}) *GraphTraversal

Value adds the value step to the GraphTraversal

func (*GraphTraversal) ValueMap

func (g *GraphTraversal) ValueMap(args ...interface{}) *GraphTraversal

ValueMap adds the valueMap step to the GraphTraversal

func (*GraphTraversal) Values

func (g *GraphTraversal) Values(args ...interface{}) *GraphTraversal

Values adds the values step to the GraphTraversal

func (*GraphTraversal) Where

func (g *GraphTraversal) Where(args ...interface{}) *GraphTraversal

Where adds the where step to the GraphTraversal

func (*GraphTraversal) With

func (g *GraphTraversal) With(args ...interface{}) *GraphTraversal

With adds the with step to the GraphTraversal

func (*GraphTraversal) Write

func (g *GraphTraversal) Write(args ...interface{}) *GraphTraversal

Write adds the write step to the GraphTraversal

type GraphTraversalSource

type GraphTraversalSource struct {
	// contains filtered or unexported fields
}

func NewDefaultGraphTraversalSource

func NewDefaultGraphTraversalSource() *GraphTraversalSource

NewDefaultGraphTraversalSource creates a new graph GraphTraversalSource without a graph, strategy, or existing traversal

func NewGraphTraversalSource

func NewGraphTraversalSource(graph *Graph, traversalStrategies *TraversalStrategies, bytecode *bytecode, remoteConnection *DriverRemoteConnection) *GraphTraversalSource

NewGraphTraversalSource creates a graph traversal source, the primary DSL of the Gremlin traversal machine

func (*GraphTraversalSource) AddE

func (gts *GraphTraversalSource) AddE(args ...interface{}) *GraphTraversal

AddE adds an Edge to start the traversal

func (*GraphTraversalSource) AddV

func (gts *GraphTraversalSource) AddV(args ...interface{}) *GraphTraversal

AddV adds a Vertex to start the traversal

func (*GraphTraversalSource) E

func (gts *GraphTraversalSource) E(args ...interface{}) *GraphTraversal

E reads edges from the graph to start the traversal

func (*GraphTraversalSource) GetBytecode

func (gts *GraphTraversalSource) GetBytecode() *bytecode

GetBytecode gets the traversal bytecode associated with this graph traversal source

func (*GraphTraversalSource) GetGraphTraversal

func (gts *GraphTraversalSource) GetGraphTraversal() *GraphTraversal

GetGraphTraversal gets the graph traversal associated with this graph traversal source

func (*GraphTraversalSource) GetTraversalStrategies

func (gts *GraphTraversalSource) GetTraversalStrategies() *TraversalStrategies

GetTraversalStrategies gets the graph traversal strategies associated with this graph traversal source

func (*GraphTraversalSource) Inject

func (gts *GraphTraversalSource) Inject(args ...interface{}) *GraphTraversal

Inject inserts arbitrary objects to start the traversal

func (*GraphTraversalSource) Io

func (gts *GraphTraversalSource) Io(args ...interface{}) *GraphTraversal

Io adds the io steps to start the traversal

func (*GraphTraversalSource) V

func (gts *GraphTraversalSource) V(args ...interface{}) *GraphTraversal

V reads vertices from the graph to start the traversal

func (*GraphTraversalSource) With

func (gts *GraphTraversalSource) With(key interface{}, value interface{}) *GraphTraversalSource

With provides a configuration to a traversal in the form of a key value pair

func (*GraphTraversalSource) WithBulk

func (gts *GraphTraversalSource) WithBulk(args ...interface{}) *GraphTraversalSource

WithBulk allows for control of bulking operations

func (*GraphTraversalSource) WithPath

func (gts *GraphTraversalSource) WithPath(args ...interface{}) *GraphTraversalSource

func (*GraphTraversalSource) WithRemote

func (gts *GraphTraversalSource) WithRemote(remoteConnection *DriverRemoteConnection) *GraphTraversalSource

func (*GraphTraversalSource) WithSack

func (gts *GraphTraversalSource) WithSack(args ...interface{}) *GraphTraversalSource

WithSack adds a sack to be used throughout the life of a spawned Traversal

func (*GraphTraversalSource) WithSideEffect

func (gts *GraphTraversalSource) WithSideEffect(args ...interface{}) *GraphTraversalSource

WithSideEffect adds a side effect to be used throughout the life of a spawned Traversal

func (*GraphTraversalSource) WithStrategies

func (gts *GraphTraversalSource) WithStrategies(args ...interface{}) *GraphTraversalSource

WithStrategies adds an arbitrary collection of TraversalStrategies instances to the traversal source

func (*GraphTraversalSource) WithoutStrategies

func (gts *GraphTraversalSource) WithoutStrategies(args ...interface{}) *GraphTraversalSource

WithoutStrategies removes an arbitrary collection of TraversalStrategies instances to the traversal source

type LogVerbosity

type LogVerbosity int

LogVerbosity is an alias for valid logging verbosity levels.

const (
	// Debug verbosity will log everything, including fine details.
	Debug LogVerbosity = iota + 1
	// Info verbosity will log messages up to standard procedure flow.
	Info
	// Warning verbosity will log messages up to warnings.
	Warning
	// Error verbosity level log only error messages.
	Error
	// Off verbosity level disables logging.
	Off
)

type Logger

type Logger interface {
	Log(verbosity LogVerbosity, v ...interface{})
	Logf(verbosity LogVerbosity, format string, v ...interface{})
}

Logger is the interface required to be implemented for use with gremlingo.

type Path

type Path struct {
	// contains filtered or unexported fields
}

Path denotes a particular walk through a Graph as defined by a traversal. A list of labels and a list of objects is maintained in the path. The list of labels are the labels of the steps traversed, and the objects are the objects that are traversed. TODO: change labels to be []<set of string> after implementing set in AN-1022 and update the GetPathObject accordingly

func (*Path) GetPathObject

func (p *Path) GetPathObject(key string) (interface{}, error)

GetPathObject returns the value that corresponds to the key for the Path and error if the value is not present or cannot be retrieved.

func (*Path) String

func (p *Path) String() string

type Property

type Property struct {
	// contains filtered or unexported fields
}

Property denotes a key/value pair associated with an Edge. A property can be empty.

func (*Property) String

func (p *Property) String() string

type Result

type Result struct {
	// contains filtered or unexported fields
}

Result Struct to abstract the Result and provide functions to use it.

func (*Result) GetBool

func (r *Result) GetBool() (bool, error)

GetBool gets the result by coercing it into a boolean, else returns an error if not parsable

func (*Result) GetByte

func (r *Result) GetByte() (byte, error)

GetByte gets the result by coercing it into a byte (uint8), else returns an error if not parsable

func (*Result) GetEdge

func (r *Result) GetEdge() (*Edge, error)

GetEdge returns the result if it is an edge, otherwise returns an error

func (*Result) GetElement

func (r *Result) GetElement() (*Element, error)

GetElement returns the result if it is an element, otherwise returns an error

func (*Result) GetFloat32

func (r *Result) GetFloat32() (float32, error)

GetFloat32 gets the result by coercing it into a float32, else returns an error if not parsable

func (*Result) GetFloat64

func (r *Result) GetFloat64() (float64, error)

GetFloat64 gets the result by coercing it into a float64, else returns an error if not parsable

func (*Result) GetInt

func (r *Result) GetInt() (int, error)

GetInt gets the result by coercing it into an int, else returns an error if not parsable

func (*Result) GetInt16

func (r *Result) GetInt16() (int16, error)

GetInt16 gets the result by coercing it into an int16, else returns an error if not parsable

func (*Result) GetInt32

func (r *Result) GetInt32() (int32, error)

GetInt32 gets the result by coercing it into a rune(int32), else returns an error if not parsable

func (*Result) GetInt64

func (r *Result) GetInt64() (int64, error)

GetInt64 gets the result by coercing it into an int64, else returns an error if not parsable

func (*Result) GetInt8

func (r *Result) GetInt8() (int8, error)

GetInt8 gets the result by coercing it into an int16, else returns an error if not parsable

func (*Result) GetInterface

func (r *Result) GetInterface() interface{}

GetInterface returns the result item

func (*Result) GetPath

func (r *Result) GetPath() (*Path, error)

GetPath returns the result if it is a path, otherwise returns an error

func (*Result) GetProperty

func (r *Result) GetProperty() (*Property, error)

GetProperty returns the result if it is a property, otherwise returns an error

func (*Result) GetSlice

func (r *Result) GetSlice() (*[]interface{}, error)

func (*Result) GetString

func (r *Result) GetString() string

GetString gets the string representation of the result

func (*Result) GetTraverser

func (r *Result) GetTraverser() (*Traverser, error)

func (*Result) GetType

func (r *Result) GetType() reflect.Type

GetType returns the type of the result

func (*Result) GetUint

func (r *Result) GetUint() (uint, error)

GetUint gets the result by coercing it into an int, else returns an error if not parsable

func (*Result) GetUint16

func (r *Result) GetUint16() (uint16, error)

GetUint16 gets the result by coercing it into an int16, else returns an error if not parsable

func (*Result) GetUint32

func (r *Result) GetUint32() (uint32, error)

GetUint32 gets the result by coercing it into a rune(int32), else returns an error if not parsable

func (*Result) GetUint64

func (r *Result) GetUint64() (uint64, error)

GetUint64 gets the result by coercing it into an int64, else returns an error if not parsable

func (*Result) GetVertex

func (r *Result) GetVertex() (*Vertex, error)

GetVertex returns the result if it is a vertex, otherwise returns an error

func (*Result) GetVertexProperty

func (r *Result) GetVertexProperty() (*VertexProperty, error)

GetVertexProperty returns the result if it is a vertex property, otherwise returns an error

func (*Result) IsNil

func (r *Result) IsNil() bool

IsNil checks if the result is null

func (*Result) ToString

func (r *Result) ToString() string

ToString returns the string representation of the Result struct in Go-syntax format

type ResultSet

type ResultSet interface {
	GetAggregateTo() string

	GetStatusAttributes() map[string]interface{}
	GetRequestID() string
	IsEmpty() bool
	Close()
	Channel() chan *Result

	All() []*Result
	GetError() error
	// contains filtered or unexported methods
}

ResultSet interface to define the functions of a ResultSet.

type TransporterType

type TransporterType int

TransporterType is an alias for valid transport protocols.

const (
	// Gorilla transport layer: github.com/gorilla/websocket
	Gorilla TransporterType = iota + 1
)

type Traversal

type Traversal struct {
	// contains filtered or unexported fields
}

func (*Traversal) Iterate

func (t *Traversal) Iterate() (*Traversal, <-chan bool, error)

Iterate all the Traverser instances in the traversal and returns the empty traversal

func (*Traversal) ToList

func (t *Traversal) ToList() ([]*Result, error)

ToList returns the result in a list.

func (*Traversal) ToSet

func (t *Traversal) ToSet() (map[*Result]bool, error)

ToSet returns the results in a set.

type TraversalStrategies

type TraversalStrategies struct {
}

type Traverser

type Traverser struct {
	// contains filtered or unexported fields
}

type Vertex

type Vertex struct {
	Element
}

Vertex contains a single vertex which has a label and an id.

func (*Vertex) String

func (v *Vertex) String() string

type VertexProperty

type VertexProperty struct {
	Element
	// contains filtered or unexported fields
}

VertexProperty is similar to propery in that it denotes a key/value pair associated with a Vertex, but is different in that it also represents an entity that is an Element and can have properties of its own.

func (*VertexProperty) String

func (vp *VertexProperty) String() string

Jump to

Keyboard shortcuts

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