Versions in this module Expand all Collapse all v0 v0.25.0 Sep 12, 2019 v0.24.0 Jul 16, 2019 Changes in this version type GraphTraversalShortestPath + func (sp *GraphTraversalShortestPath) Dedup(ctx StepContext, s ...interface{}) *GraphTraversalV type GraphTraversalValue + func (t *GraphTraversalValue) Has(ctx StepContext, s ...interface{}) *GraphTraversalValue + type NEEElementMatcher struct + func Nee(s interface{}) *NEEElementMatcher type Token + const NEE v0.23.0 May 17, 2019 v0.22.0 Mar 21, 2019 Changes in this version + var ErrExecutionError = errors.New("Error while executing the query") + func KeyValueToFilter(k string, v interface{}) (*filters.Filter, error) + func ParamsToFilter(filterOp filters.BoolFilterOp, s ...interface{}) (*filters.Filter, error) + func ParamsToMetadataFilter(filterOp filters.BoolFilterOp, s ...interface{}) (graph.ElementMatcher, error) + func ParseSortParameter(keys ...interface{}) (order common.SortOrder, sortBy string, err error) + type BetweenElementMatcher struct + func Between(from interface{}, to interface{}) *BetweenElementMatcher + type ForeverPredicate struct + type GTEElementMatcher struct + func Gte(s interface{}) *GTEElementMatcher + type GTElementMatcher struct + func Gt(s interface{}) *GTElementMatcher + type GraphTraversal struct + Graph *graph.Graph + func NewGraphTraversal(g *graph.Graph, lockGraph bool) *GraphTraversal + func (t *GraphTraversal) Context(s ...interface{}) *GraphTraversal + func (t *GraphTraversal) E(ctx StepContext, s ...interface{}) *GraphTraversalE + func (t *GraphTraversal) Error() error + func (t *GraphTraversal) MarshalJSON() ([]byte, error) + func (t *GraphTraversal) RLock() + func (t *GraphTraversal) RUnlock() + func (t *GraphTraversal) V(ctx StepContext, s ...interface{}) *GraphTraversalV + func (t *GraphTraversal) Values() []interface{} + type GraphTraversalAs struct + GraphTraversal *GraphTraversal + type GraphTraversalE struct + GraphTraversal *GraphTraversal + func NewGraphTraversalE(gt *GraphTraversal, edges []*graph.Edge, err ...error) *GraphTraversalE + func (te *GraphTraversalE) BothV(ctx StepContext, s ...interface{}) *GraphTraversalV + func (te *GraphTraversalE) Count(ctx StepContext, s ...interface{}) *GraphTraversalValue + func (te *GraphTraversalE) Dedup(ctx StepContext, s ...interface{}) *GraphTraversalE + func (te *GraphTraversalE) Error() error + func (te *GraphTraversalE) G() *GraphTraversal + func (te *GraphTraversalE) Has(ctx StepContext, s ...interface{}) *GraphTraversalE + func (te *GraphTraversalE) HasEither(ctx StepContext, s ...interface{}) *GraphTraversalE + func (te *GraphTraversalE) HasKey(ctx StepContext, s string) *GraphTraversalE + func (te *GraphTraversalE) HasNot(ctx StepContext, s string) *GraphTraversalE + func (te *GraphTraversalE) InV(ctx StepContext, s ...interface{}) *GraphTraversalV + func (te *GraphTraversalE) Limit(ctx StepContext, s ...interface{}) *GraphTraversalE + func (te *GraphTraversalE) MarshalJSON() ([]byte, error) + func (te *GraphTraversalE) OutV(ctx StepContext, s ...interface{}) *GraphTraversalV + func (te *GraphTraversalE) Range(ctx StepContext, s ...interface{}) *GraphTraversalE + func (te *GraphTraversalE) SubGraph(ctx StepContext, s ...interface{}) *GraphTraversal + func (te *GraphTraversalE) Values() []interface{} + type GraphTraversalRange [2]int64 + func (r *GraphTraversalRange) Iterator() *common.Iterator + type GraphTraversalShortestPath struct + GraphTraversal *GraphTraversal + func (sp *GraphTraversalShortestPath) Error() error + func (sp *GraphTraversalShortestPath) GetNodes() []*graph.Node + func (sp *GraphTraversalShortestPath) MarshalJSON() ([]byte, error) + func (sp *GraphTraversalShortestPath) SubGraph(ctx StepContext, s ...interface{}) *GraphTraversal + func (sp *GraphTraversalShortestPath) Values() []interface{} + type GraphTraversalStep interface + Error func() error + MarshalJSON func() ([]byte, error) + Values func() []interface{} + type GraphTraversalV struct + GraphTraversal *GraphTraversal + func NewGraphTraversalV(gt *GraphTraversal, nodes []*graph.Node, err ...error) *GraphTraversalV + func (tv *GraphTraversalV) As(ctx StepContext, keys ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) Both(ctx StepContext, s ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) BothE(ctx StepContext, s ...interface{}) *GraphTraversalE + func (tv *GraphTraversalV) Count(ctx StepContext, s ...interface{}) *GraphTraversalValue + func (tv *GraphTraversalV) Dedup(ctx StepContext, s ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) Error() error + func (tv *GraphTraversalV) G() *GraphTraversal + func (tv *GraphTraversalV) GetNodes() (nodes []*graph.Node) + func (tv *GraphTraversalV) Has(ctx StepContext, s ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) HasEither(ctx StepContext, s ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) HasKey(ctx StepContext, s string) *GraphTraversalV + func (tv *GraphTraversalV) HasNot(ctx StepContext, s string) *GraphTraversalV + func (tv *GraphTraversalV) In(ctx StepContext, s ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) InE(ctx StepContext, s ...interface{}) *GraphTraversalE + func (tv *GraphTraversalV) Limit(ctx StepContext, s ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) MarshalJSON() ([]byte, error) + func (tv *GraphTraversalV) Out(ctx StepContext, s ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) OutE(ctx StepContext, s ...interface{}) *GraphTraversalE + func (tv *GraphTraversalV) PropertyKeys(ctx StepContext, keys ...interface{}) *GraphTraversalValue + func (tv *GraphTraversalV) PropertyValues(ctx StepContext, k ...interface{}) *GraphTraversalValue + func (tv *GraphTraversalV) Range(ctx StepContext, s ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) Select(ctx StepContext, keys ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) ShortestPathTo(ctx StepContext, m graph.Metadata, e graph.Metadata) *GraphTraversalShortestPath + func (tv *GraphTraversalV) Sort(ctx StepContext, keys ...interface{}) *GraphTraversalV + func (tv *GraphTraversalV) SubGraph(ctx StepContext, s ...interface{}) *GraphTraversal + func (tv *GraphTraversalV) Sum(ctx StepContext, keys ...interface{}) *GraphTraversalValue + func (tv *GraphTraversalV) Values() []interface{} + type GraphTraversalValue struct + GraphTraversal *GraphTraversal + func NewGraphTraversalValue(gt *GraphTraversal, value interface{}) *GraphTraversalValue + func NewGraphTraversalValueFromError(err ...error) *GraphTraversalValue + func (t *GraphTraversalValue) Dedup(ctx StepContext, keys ...interface{}) *GraphTraversalValue + func (t *GraphTraversalValue) Error() error + func (t *GraphTraversalValue) MarshalJSON() ([]byte, error) + func (t *GraphTraversalValue) Values() []interface{} + type GremlinTraversalContext struct + Params []interface{} + StepContext StepContext + func (p *GremlinTraversalContext) Context() *GremlinTraversalContext + func (p *GremlinTraversalContext) ReduceRange(next GremlinTraversalStep) bool + type GremlinTraversalExtension interface + ParseStep func(t Token, p GremlinTraversalContext) (GremlinTraversalStep, error) + ScanIdent func(s string) (Token, bool) + type GremlinTraversalParser struct + func NewGremlinTraversalParser() *GremlinTraversalParser + func (p *GremlinTraversalParser) AddTraversalExtension(e GremlinTraversalExtension) + func (p *GremlinTraversalParser) Parse(r io.Reader) (*GremlinTraversalSequence, error) + type GremlinTraversalScanner struct + func NewGremlinTraversalScanner(r io.Reader, e []GremlinTraversalExtension) *GremlinTraversalScanner + func (s *GremlinTraversalScanner) Scan() (tok Token, lit string) + type GremlinTraversalSequence struct + GraphTraversal *GraphTraversal + func (s *GremlinTraversalSequence) Exec(g *graph.Graph, lockGraph bool) (GraphTraversalStep, error) + type GremlinTraversalStep interface + Context func() *GremlinTraversalContext + Exec func(last GraphTraversalStep) (GraphTraversalStep, error) + Reduce func(previous GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepAs struct + func (s *GremlinTraversalStepAs) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepAs) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepBoth struct + func (s *GremlinTraversalStepBoth) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepBoth) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepBothE struct + func (s *GremlinTraversalStepBothE) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepBothE) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepBothV struct + func (s *GremlinTraversalStepBothV) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepBothV) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepContext struct + func (s *GremlinTraversalStepContext) Exec(last GraphTraversalStep) (_ GraphTraversalStep, err error) + func (s *GremlinTraversalStepContext) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepCount struct + func (s *GremlinTraversalStepCount) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepCount) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepDedup struct + func (s *GremlinTraversalStepDedup) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepDedup) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepE struct + func (s *GremlinTraversalStepE) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepE) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepG struct + func (s *GremlinTraversalStepG) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepG) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepHas struct + func (s *GremlinTraversalStepHas) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepHas) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepHasEither struct + func (s *GremlinTraversalStepHasEither) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepHasEither) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepHasKey struct + func (s *GremlinTraversalStepHasKey) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepHasKey) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepHasNot struct + func (s *GremlinTraversalStepHasNot) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepHasNot) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepIn struct + func (s *GremlinTraversalStepIn) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepIn) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepInE struct + func (s *GremlinTraversalStepInE) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepInE) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepInV struct + func (s *GremlinTraversalStepInV) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepInV) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepKeys struct + func (s *GremlinTraversalStepKeys) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepKeys) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepLimit struct + func (s *GremlinTraversalStepLimit) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepLimit) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepOut struct + func (s *GremlinTraversalStepOut) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepOut) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepOutE struct + func (s *GremlinTraversalStepOutE) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepOutE) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepOutV struct + func (s *GremlinTraversalStepOutV) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepOutV) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepRange struct + func (s *GremlinTraversalStepRange) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepRange) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepSelect struct + func (s *GremlinTraversalStepSelect) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepSelect) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepShortestPathTo struct + func (s *GremlinTraversalStepShortestPathTo) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepShortestPathTo) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepSort struct + func (s *GremlinTraversalStepSort) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepSort) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepSubGraph struct + func (s *GremlinTraversalStepSubGraph) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepSubGraph) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepSum struct + func (s *GremlinTraversalStepSum) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepSum) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepV struct + func (s *GremlinTraversalStepV) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepV) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type GremlinTraversalStepValues struct + func (s *GremlinTraversalStepValues) Exec(last GraphTraversalStep) (GraphTraversalStep, error) + func (s *GremlinTraversalStepValues) Reduce(next GremlinTraversalStep) (GremlinTraversalStep, error) + type IPV4RangeElementMatcher struct + func IPV4Range(s interface{}) *IPV4RangeElementMatcher + type InsideElementMatcher struct + func Inside(from, to interface{}) *InsideElementMatcher + type LTEElementMatcher struct + func Lte(s interface{}) *LTEElementMatcher + type LTElementMatcher struct + func Lt(s interface{}) *LTElementMatcher + type NEElementMatcher struct + func Ne(s interface{}) *NEElementMatcher + type NowPredicate struct + type OutsideElementMatcher struct + func Outside(from, to interface{}) *OutsideElementMatcher + type RegexElementMatcher struct + func Regex(regex string) *RegexElementMatcher + type Since struct + Seconds int64 + type StepContext struct + PaginationRange *GraphTraversalRange + type Token int + const AS + const ASC + const BETWEEN + const BOTH + const BOTHE + const BOTHV + const COMMA + const CONTEXT + const COUNT + const DEDUP + const DESC + const DOT + const E + const EOF + const FALSE + const FOREVER + const G + const GT + const GTE + const HAS + const HASEITHER + const HASKEY + const HASNOT + const IDENT + const ILLEGAL + const IN + const INE + const INSIDE + const INV + const IPV4RANGE + const KEYS + const LEFTPARENTHESIS + const LIMIT + const LT + const LTE + const METADATA + const NE + const NOW + const NUMBER + const OUT + const OUTE + const OUTSIDE + const OUTV + const RANGE + const REGEX + const RIGHTPARENTHESIS + const SELECT + const SHORTESTPATHTO + const SORT + const STRING + const SUBGRAPH + const SUM + const TRUE + const V + const VALUES + const WITHIN + const WITHOUT + const WS + type WithinElementMatcher struct + List []interface{} + func Within(s ...interface{}) *WithinElementMatcher + type WithoutElementMatcher struct + List []interface{} + func Without(s ...interface{}) *WithoutElementMatcher