grpc

package
v2.1.4-hotfix2+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package grpc exposes the document store api in GRPC

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Db      docstore.Store
	Indexer docstore.Indexer
}

func (*Handler) Close

func (h *Handler) Close() error

func (*Handler) CountDocuments

func (h *Handler) CountDocuments(ctx context.Context, request *proto.ListDocumentsRequest, response *proto.CountDocumentsResponse) error

func (*Handler) DeleteDocuments

func (h *Handler) DeleteDocuments(ctx context.Context, request *proto.DeleteDocumentsRequest, response *proto.DeleteDocumentsResponse) error

func (*Handler) GetDocument

func (h *Handler) GetDocument(ctx context.Context, request *proto.GetDocumentRequest, response *proto.GetDocumentResponse) error

func (*Handler) ListDocuments

func (h *Handler) ListDocuments(ctx context.Context, request *proto.ListDocumentsRequest, stream proto.DocStore_ListDocumentsStream) error

func (*Handler) PutDocument

func (h *Handler) PutDocument(ctx context.Context, request *proto.PutDocumentRequest, response *proto.PutDocumentResponse) error

func (*Handler) TriggerResync added in v1.5.0

func (h *Handler) TriggerResync(ctx context.Context, request *sync.ResyncRequest, response *sync.ResyncResponse) error

TriggerResync clear search index and reindex all docs from DB

Jump to

Keyboard shortcuts

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