proxyapi

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 56 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	SearchTimeout  time.Duration
	ExportTimeout  time.Duration
	QueryRateLimit float64
	EsVersion      string
	// GatewayAddr is grpc-gateway client address. Used for debugging purposes.
	GatewayAddr                       string
	AsyncSearchMaxDocumentsPerRequest int64
	// If true, suitable ComplexSearch queries will be served through stream search implementation.
	UseStreamSearch bool
}

type BulkHandler

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

func NewBulkHandler

func NewBulkHandler(proc DocumentsProcessor, maxDocumentSize int) *BulkHandler

func (*BulkHandler) ServeHTTP

func (h *BulkHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DocumentsProcessor

type DocumentsProcessor interface {
	ProcessDocuments(ctx context.Context, requestTime time.Time, readNext func() ([]byte, error)) (int, error)
}

type ExportAsyncSearchServer added in v0.75.0

type ExportAsyncSearchServer interface {
	seqproxyapi.SeqProxyApi_ExportAsyncSearchServer
}

type ExportServer

type ExportServer interface {
	seqproxyapi.SeqProxyApi_ExportServer
}

type FetchServer

type FetchServer interface {
	seqproxyapi.SeqProxyApi_FetchServer
}

type Ingestor

type Ingestor struct {
	Config IngestorConfig

	BulkIngestor   *bulk.Ingestor
	SearchIngestor *search.Ingestor
	// contains filtered or unexported fields
}

func NewIngestor

func NewIngestor(config IngestorConfig, store *storeapiclient.Store) (*Ingestor, error)

func (*Ingestor) Start

func (i *Ingestor) Start(httpListener, grpcListener net.Listener)

func (*Ingestor) Stop

func (i *Ingestor) Stop()

type IngestorConfig

type IngestorConfig struct {
	API    APIConfig
	Search search.Config
	Bulk   bulk.IngestorConfig
}

type MappingProvider

type MappingProvider interface {
	GetRawMapping() *seq.RawMapping
}

type RateLimiter

type RateLimiter interface {
	Account(string) bool
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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