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 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. |