Lens: github.com/RTradeLtd/Lens Index | Files | Directories

package lens

import "github.com/RTradeLtd/Lens"

Index

Package Files

v2.go v2_util.go

type V2 Uses

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

V2 is the new Lens API, and implements the LensV2 gRPC interface directly.

func NewV2 Uses

func NewV2(
    opts V2Options,
    ipfs rtfs.Manager,
    ia images.TensorflowAnalyzer,
    logger *zap.SugaredLogger,
) (*V2, error)

NewV2 instantiates a new V2 API

func NewV2WithEngine Uses

func NewV2WithEngine(
    opts V2Options,
    ipfs rtfs.Manager,
    ia images.TensorflowAnalyzer,
    se engine.Searcher,
    logger *zap.SugaredLogger,
) *V2

NewV2WithEngine instantiates a Lens V2 service with the given engine

func (*V2) Close Uses

func (v *V2) Close()

Close releases Lens resources

func (*V2) Index Uses

func (v *V2) Index(ctx context.Context, req *lensv2.IndexReq) (*lensv2.IndexResp, error)

Index analyzes and stores the given object

func (*V2) Remove Uses

func (v *V2) Remove(ctx context.Context, req *lensv2.RemoveReq) (*lensv2.RemoveResp, error)

Remove unindexes and deletes the requested object

func (*V2) Search Uses

func (v *V2) Search(ctx context.Context, req *lensv2.SearchReq) (*lensv2.SearchResp, error)

Search executes a query against the Lens index

type V2Options Uses

type V2Options struct {
    TesseractConfigPath string

    Engine engine.Opts
}

V2Options denotes options for the V2 Lens API

Directories

PathSynopsis
analyzer/images
analyzer/ocr
engine
engine/queue
logs
mocksCode generated by counterfeiter.
models
server
source/planetaryPackage planetary handles extraction of consumable data from IPLD objects

Package lens imports 17 packages (graph). Updated 2019-08-15. Refresh now. Tools for package owners.