{"modulePath":"github.com/ozontech/seq-db","version":"v0.82.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package proxyapi\n\n## Types\n\n```go\ntype APIConfig struct {\n\tSearchTimeout  time.Duration\n\tExportTimeout  time.Duration\n\tQueryRateLimit float64\n\tEsVersion      string\n\t// GatewayAddr is grpc-gateway client address. Used for debugging purposes.\n\tGatewayAddr                       string\n\tAsyncSearchMaxDocumentsPerRequest int64\n\t// If true, suitable ComplexSearch queries will be served through stream search implementation.\n\tUseStreamSearch bool\n}\n```\n\n```go\ntype BulkHandler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBulkHandler(proc DocumentsProcessor, maxDocumentSize int) *BulkHandler\n```\n\n```go\nfunc (h *BulkHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\n\n```go\ntype DocumentsProcessor interface {\n\tProcessDocuments(ctx context.Context, requestTime time.Time, readNext func() ([]byte, error)) (int, error)\n}\n```\n\n```go\ntype ExportAsyncSearchServer interface {\n\tseqproxyapi.SeqProxyApi_ExportAsyncSearchServer\n}\n```\n\n```go\ntype ExportServer interface {\n\tseqproxyapi.SeqProxyApi_ExportServer\n}\n```\n\n```go\ntype FetchServer interface {\n\tseqproxyapi.SeqProxyApi_FetchServer\n}\n```\n\n```go\ntype Ingestor struct {\n\tConfig IngestorConfig\n\n\tBulkIngestor   *bulk.Ingestor\n\tSearchIngestor *search.Ingestor\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewIngestor(config IngestorConfig, store *storeapiclient.Store) (*Ingestor, error)\n```\n\n```go\nfunc (i *Ingestor) Start(httpListener, grpcListener net.Listener)\n```\n\n```go\nfunc (i *Ingestor) Stop()\n```\n\n```go\ntype IngestorConfig struct {\n\tAPI    APIConfig\n\tSearch search.Config\n\tBulk   bulk.IngestorConfig\n}\n```\n\n```go\ntype MappingProvider interface {\n\tGetRawMapping() *seq.RawMapping\n}\n```\n\n```go\ntype RateLimiter interface {\n\tAccount(string) bool\n}\n```\n\n```go\ntype SearchIngestor interface {\n\tSearch(ctx context.Context, sr *search.SearchRequest, tr *querytracer.Tracer) (*seq.QPR, search.DocsIterator, *search.SearchStats, error)\n\tStreamSearch(ctx context.Context, sr *search.StreamSearchRequest, tr *querytracer.Tracer) (query.RecordProducer, func(), error)\n\tDocuments(ctx context.Context, r search.FetchRequest) (search.DocsIterator, error)\n\tStatus(ctx context.Context) *search.IngestorStatus\n\tStartAsyncSearch(context.Context, search.AsyncRequest) (search.AsyncResponse, error)\n\tFetchAsyncSearchResult(context.Context, search.FetchAsyncSearchResultRequest) (search.FetchAsyncSearchResultResponse, search.DocsIterator, error)\n\tCancelAsyncSearch(ctx context.Context, id string) error\n\tDeleteAsyncSearch(ctx context.Context, id string) error\n\tGetAsyncSearchesList(context.Context, search.GetAsyncSearchesListRequest) ([]*search.AsyncSearchesListItem, error)\n}\n```\n\n","path":"github.com/ozontech/seq-db/proxyapi","name":"proxyapi","synopsis":"","isRedistributable":true}
