gizmo

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Name = "gizmo"
View Source
const TopResultTag = "id"

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Meta bool
	Val  interface{}
	Tags map[string]graph.Value
}

func (*Result) Err

func (r *Result) Err() error

func (*Result) Result

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

type Session

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

func NewSession

func NewSession(qs graph.QuadStore) *Session

func (*Session) Clear

func (s *Session) Clear()

func (*Session) Collate

func (s *Session) Collate(result query.Result)

func (*Session) Execute

func (s *Session) Execute(ctx context.Context, qu string, out chan query.Result, limit int)

func (*Session) FormatREPL

func (s *Session) FormatREPL(result query.Result) string

func (*Session) Results

func (s *Session) Results() (interface{}, error)

func (*Session) ShapeOf

func (s *Session) ShapeOf(qu string) (interface{}, error)

Jump to

Keyboard shortcuts

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