proxyapi

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 49 Imported by: 0

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
}

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