Documentation ¶
Index ¶
- Variables
- func SliceToMetadata(s ...interface{}) (graph.Metadata, error)
- type GraphTraversal
- type GraphTraversalE
- func (te *GraphTraversalE) Dedup() *GraphTraversalE
- func (te *GraphTraversalE) Error() error
- func (te *GraphTraversalE) Has(s ...interface{}) *GraphTraversalE
- func (te *GraphTraversalE) InV(s ...interface{}) *GraphTraversalV
- func (te *GraphTraversalE) MarshalJSON() ([]byte, error)
- func (te *GraphTraversalE) OutV(s ...interface{}) *GraphTraversalV
- func (te *GraphTraversalE) Values() []interface{}
- type GraphTraversalShortestPath
- type GraphTraversalStep
- type GraphTraversalV
- func (tv *GraphTraversalV) Both(s ...interface{}) *GraphTraversalV
- func (tv *GraphTraversalV) Dedup() *GraphTraversalV
- func (tv *GraphTraversalV) Error() error
- func (tv *GraphTraversalV) Has(s ...interface{}) *GraphTraversalV
- func (tv *GraphTraversalV) In(s ...interface{}) *GraphTraversalV
- func (tv *GraphTraversalV) InE(s ...interface{}) *GraphTraversalE
- func (tv *GraphTraversalV) MarshalJSON() ([]byte, error)
- func (tv *GraphTraversalV) Out(s ...interface{}) *GraphTraversalV
- func (tv *GraphTraversalV) OutE(s ...interface{}) *GraphTraversalE
- func (tv *GraphTraversalV) ShortestPathTo(m graph.Metadata, e ...graph.Metadata) *GraphTraversalShortestPath
- func (tv *GraphTraversalV) Values() []interface{}
- type GremlinTraversalExtension
- type GremlinTraversalParser
- type GremlinTraversalScanner
- type GremlinTraversalSequence
- type GremlinTraversalStep
- type GremlinTraversalStepParams
- type NEMetadataMatcher
- type RegexMetadataMatcher
- type Token
- type WithinMetadataMatcher
- type WithoutMetadataMatcher
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExecutionError error = errors.New("Error while executing the query")
)
Functions ¶
func SliceToMetadata ¶
Types ¶
type GraphTraversal ¶
func NewGraphTraversal ¶
func NewGraphTraversal(g *graph.Graph) *GraphTraversal
func (*GraphTraversal) Context ¶
func (t *GraphTraversal) Context(s ...interface{}) *GraphTraversal
func (*GraphTraversal) Error ¶
func (t *GraphTraversal) Error() error
func (*GraphTraversal) MarshalJSON ¶
func (t *GraphTraversal) MarshalJSON() ([]byte, error)
func (*GraphTraversal) V ¶
func (t *GraphTraversal) V(ids ...graph.Identifier) *GraphTraversalV
func (*GraphTraversal) Values ¶
func (t *GraphTraversal) Values() []interface{}
type GraphTraversalE ¶
type GraphTraversalE struct { GraphTraversal *GraphTraversal // contains filtered or unexported fields }
func (*GraphTraversalE) Dedup ¶
func (te *GraphTraversalE) Dedup() *GraphTraversalE
func (*GraphTraversalE) Error ¶
func (te *GraphTraversalE) Error() error
func (*GraphTraversalE) Has ¶
func (te *GraphTraversalE) Has(s ...interface{}) *GraphTraversalE
func (*GraphTraversalE) InV ¶
func (te *GraphTraversalE) InV(s ...interface{}) *GraphTraversalV
func (*GraphTraversalE) MarshalJSON ¶
func (te *GraphTraversalE) MarshalJSON() ([]byte, error)
func (*GraphTraversalE) OutV ¶
func (te *GraphTraversalE) OutV(s ...interface{}) *GraphTraversalV
func (*GraphTraversalE) Values ¶
func (te *GraphTraversalE) Values() []interface{}
type GraphTraversalShortestPath ¶
type GraphTraversalShortestPath struct { GraphTraversal *GraphTraversal // contains filtered or unexported fields }
func (*GraphTraversalShortestPath) Error ¶
func (sp *GraphTraversalShortestPath) Error() error
func (*GraphTraversalShortestPath) MarshalJSON ¶
func (sp *GraphTraversalShortestPath) MarshalJSON() ([]byte, error)
func (*GraphTraversalShortestPath) Values ¶
func (sp *GraphTraversalShortestPath) Values() []interface{}
type GraphTraversalStep ¶
type GraphTraversalV ¶
type GraphTraversalV struct { GraphTraversal *GraphTraversal // contains filtered or unexported fields }
func NewGraphTraversalV ¶
func NewGraphTraversalV(gt *GraphTraversal, nodes []*graph.Node, err ...error) *GraphTraversalV
func (*GraphTraversalV) Both ¶
func (tv *GraphTraversalV) Both(s ...interface{}) *GraphTraversalV
func (*GraphTraversalV) Dedup ¶
func (tv *GraphTraversalV) Dedup() *GraphTraversalV
func (*GraphTraversalV) Error ¶
func (tv *GraphTraversalV) Error() error
func (*GraphTraversalV) Has ¶
func (tv *GraphTraversalV) Has(s ...interface{}) *GraphTraversalV
func (*GraphTraversalV) In ¶
func (tv *GraphTraversalV) In(s ...interface{}) *GraphTraversalV
func (*GraphTraversalV) InE ¶
func (tv *GraphTraversalV) InE(s ...interface{}) *GraphTraversalE
func (*GraphTraversalV) MarshalJSON ¶
func (tv *GraphTraversalV) MarshalJSON() ([]byte, error)
func (*GraphTraversalV) Out ¶
func (tv *GraphTraversalV) Out(s ...interface{}) *GraphTraversalV
func (*GraphTraversalV) OutE ¶
func (tv *GraphTraversalV) OutE(s ...interface{}) *GraphTraversalE
func (*GraphTraversalV) ShortestPathTo ¶
func (tv *GraphTraversalV) ShortestPathTo(m graph.Metadata, e ...graph.Metadata) *GraphTraversalShortestPath
func (*GraphTraversalV) Values ¶
func (tv *GraphTraversalV) Values() []interface{}
type GremlinTraversalExtension ¶
type GremlinTraversalExtension interface { ScanIdent(s string) (Token, bool) ParseStep(t Token, p GremlinTraversalStepParams) (GremlinTraversalStep, error) }
type GremlinTraversalParser ¶
type GremlinTraversalParser struct { Graph *graph.Graph Reader io.Reader // contains filtered or unexported fields }
func NewGremlinTraversalParser ¶
func NewGremlinTraversalParser(r io.Reader, g *graph.Graph) *GremlinTraversalParser
func (*GremlinTraversalParser) AddTraversalExtension ¶
func (p *GremlinTraversalParser) AddTraversalExtension(e GremlinTraversalExtension)
func (*GremlinTraversalParser) Parse ¶
func (p *GremlinTraversalParser) Parse() (*GremlinTraversalSequence, error)
type GremlinTraversalScanner ¶
type GremlinTraversalScanner struct {
// contains filtered or unexported fields
}
func NewGremlinTraversalScanner ¶
func NewGremlinTraversalScanner(r io.Reader, e []GremlinTraversalExtension) *GremlinTraversalScanner
func (*GremlinTraversalScanner) Scan ¶
func (s *GremlinTraversalScanner) Scan() (tok Token, lit string)
type GremlinTraversalSequence ¶
type GremlinTraversalSequence struct { GraphTraversal *GraphTraversal // contains filtered or unexported fields }
func (*GremlinTraversalSequence) Exec ¶
func (s *GremlinTraversalSequence) Exec() (GraphTraversalStep, error)
type GremlinTraversalStep ¶
type GremlinTraversalStep interface {
Exec(last GraphTraversalStep) (GraphTraversalStep, error)
}
type GremlinTraversalStepParams ¶
type GremlinTraversalStepParams []interface{}
type NEMetadataMatcher ¶
type NEMetadataMatcher struct {
// contains filtered or unexported fields
}
func Ne ¶
func Ne(s interface{}) *NEMetadataMatcher
func (*NEMetadataMatcher) Match ¶
func (n *NEMetadataMatcher) Match(v interface{}) bool
type RegexMetadataMatcher ¶
type RegexMetadataMatcher struct {
// contains filtered or unexported fields
}
func Regex ¶
func Regex(expr string) *RegexMetadataMatcher
func (*RegexMetadataMatcher) Match ¶
func (r *RegexMetadataMatcher) Match(v interface{}) bool
type WithinMetadataMatcher ¶
type WithinMetadataMatcher struct {
// contains filtered or unexported fields
}
func Within ¶
func Within(s ...interface{}) *WithinMetadataMatcher
func (*WithinMetadataMatcher) Match ¶
func (w *WithinMetadataMatcher) Match(v interface{}) bool
type WithoutMetadataMatcher ¶
type WithoutMetadataMatcher struct {
// contains filtered or unexported fields
}
func Without ¶
func Without(s ...interface{}) *WithoutMetadataMatcher
func (*WithoutMetadataMatcher) Match ¶
func (w *WithoutMetadataMatcher) Match(v interface{}) bool
Click to show internal directories.
Click to hide internal directories.