get

package
v0.0.0-...-8832f83 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

Processor is a simple Gremlin-Query Executor that is specific to Fetch. It transforms the return value into a usable beacon structure and calculates the final certainty.

func NewProcessor

func NewProcessor(executor executor, nameSource nameSource, className schema.ClassName) *Processor

NewProcessor from a gremlin executer. See Processor for details.

func (*Processor) Process

func (p *Processor) Process(query *gremlin.Query) ([]interface{}, error)

Process the query by executing it and then transforming the results to include the beacon structure

type Query

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

Query prepares a Local->Fetch Query. Can be built with String(). Create with NewQuery() to be sure that all required properties are set

func NewQuery

func NewQuery(p get.Params, ns nameSource, ts typeSource) *Query

NewQuery is the preferred way to create a query

func (*Query) String

func (b *Query) String() (string, error)

String builds the query and returns it as a string

Jump to

Keyboard shortcuts

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