lookups

package
v0.0.0-...-6719cd2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package lookups defines go interfaces that the various LookupXX rpc wrappers expose, this can be useful in decoupling the actual Loopup implementation from its usage, allowing for easier testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type All

type All interface {
	PO
	POCmp
	S
	SP
	SPO
}

All contains the collection of all Lookup types

type PO

type PO interface {
	LookupPO(ctx context.Context, req *rpc.LookupPORequest, resCh chan *rpc.LookupChunk) error
}

PO defines the LookupPO request, i.e. final all facts that have a matching Predicate & Object

type POCmp

type POCmp interface {
	LookupPOCmp(ctx context.Context, req *rpc.LookupPOCmpRequest, resCh chan *rpc.LookupChunk) error
}

POCmp defines the LookupPoCmp request, i.e. find all facts that have a matching Predicate and Object passes a defined comparison, comparisons include < <= > >= and within range

type S

type S interface {
	LookupS(ctx context.Context, req *rpc.LookupSRequest, resCh chan *rpc.LookupChunk) error
}

S defines the LookupS request, i.e. find all finds with a given subject

type SP

type SP interface {
	LookupSP(ctx context.Context, req *rpc.LookupSPRequest, resCh chan *rpc.LookupChunk) error
}

SP defines the LookupSP request, ie. final all facts with a given Subject, Predicate

type SPO

type SPO interface {
	LookupSPO(ctx context.Context, req *rpc.LookupSPORequest, resCh chan *rpc.LookupChunk) error
}

SPO defines the LookupSPO request, i.e. does the fact with these Subject, Predicate, Object values exist

Directories

Path Synopsis
Package mocklookups provides a mock implementation of the various Fact lookup RPCs.
Package mocklookups provides a mock implementation of the various Fact lookup RPCs.

Jump to

Keyboard shortcuts

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