graphmock

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntVal

type IntVal int

func (IntVal) Key

func (v IntVal) Key() interface{}

type Oldstore

type Oldstore struct {
	Parse bool
	Data  []string
	Iter  graph.Iterator
}

Oldstore is a mocked version of the QuadStore interface, for use in tests.

func (*Oldstore) ApplyDeltas

func (qs *Oldstore) ApplyDeltas([]graph.Delta, graph.IgnoreOpts) error

func (*Oldstore) Close

func (qs *Oldstore) Close() error

func (*Oldstore) DebugPrint

func (qs *Oldstore) DebugPrint()

func (*Oldstore) NameOf

func (qs *Oldstore) NameOf(v graph.Value) quad.Value

func (*Oldstore) NodesAllIterator

func (qs *Oldstore) NodesAllIterator() graph.Iterator

func (*Oldstore) OptimizeIterator

func (qs *Oldstore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)

func (*Oldstore) Quad

func (qs *Oldstore) Quad(graph.Value) quad.Quad

func (*Oldstore) QuadDirection

func (qs *Oldstore) QuadDirection(graph.Value, quad.Direction) graph.Value

func (*Oldstore) QuadIterator

func (qs *Oldstore) QuadIterator(d quad.Direction, i graph.Value) graph.Iterator

func (*Oldstore) QuadsAllIterator

func (qs *Oldstore) QuadsAllIterator() graph.Iterator

func (*Oldstore) RemoveQuad

func (qs *Oldstore) RemoveQuad(t quad.Quad)

func (*Oldstore) Size

func (qs *Oldstore) Size() int64

func (*Oldstore) Type

func (qs *Oldstore) Type() string

func (*Oldstore) ValueOf

func (qs *Oldstore) ValueOf(s quad.Value) graph.Value

type Store

type Store struct {
	Data []quad.Quad
}

func (*Store) ApplyDeltas

func (qs *Store) ApplyDeltas([]graph.Delta, graph.IgnoreOpts) error

func (*Store) Close

func (qs *Store) Close() error

func (*Store) DebugPrint

func (qs *Store) DebugPrint()

func (*Store) NameOf

func (qs *Store) NameOf(v graph.Value) quad.Value

func (*Store) NodesAllIterator

func (qs *Store) NodesAllIterator() graph.Iterator

func (*Store) OptimizeIterator

func (qs *Store) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)

func (*Store) Quad

func (qs *Store) Quad(v graph.Value) quad.Quad

func (*Store) QuadDirection

func (qs *Store) QuadDirection(v graph.Value, d quad.Direction) graph.Value

func (*Store) QuadIterator

func (qs *Store) QuadIterator(d quad.Direction, i graph.Value) graph.Iterator

func (*Store) QuadsAllIterator

func (qs *Store) QuadsAllIterator() graph.Iterator

func (*Store) RemoveQuad

func (qs *Store) RemoveQuad(t quad.Quad)

func (*Store) Size

func (qs *Store) Size() int64

func (*Store) Type

func (qs *Store) Type() string

func (*Store) ValueOf

func (qs *Store) ValueOf(s quad.Value) graph.Value

type StringNode

type StringNode string

func (StringNode) Key

func (s StringNode) Key() interface{}

Jump to

Keyboard shortcuts

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