Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSearchAPI ¶ added in v1.8.0
func CreateSearchAPI(ctx context.Context, host, bindAddr, authAPIURL string, errorChan chan error, searchOutputQueue OutputQueue, datasetAPIClient DatasetAPIClient, serviceAuthToken string, elasticsearch Elasticsearcher, defaultMaxResults int, hasPrivateEndpoints bool, auditor audit.AuditorService, healthCheck *healthcheck.HealthCheck)
CreateSearchAPI manages all the routes configured to API
Types ¶
type DatasetAPIClient ¶ added in v1.8.0
type DownloadsGenerator ¶ added in v1.8.0
type DownloadsGenerator interface {
Generate(datasetID, instanceID, edition, version string) error
}
DownloadsGenerator pre generates full file downloads for the specified dataset/edition/version
type Elasticsearcher ¶ added in v1.8.0
type Elasticsearcher interface {
DeleteSearchIndex(ctx context.Context, instanceID, dimension string) (int, error)
QuerySearchIndex(ctx context.Context, instanceID, dimension, term string, limit, offset int) (*models.SearchResponse, int, error)
}
Elasticsearcher - An interface used to access elasticsearch
type HealthCheck ¶ added in v1.8.0
type OutputQueue ¶ added in v1.8.0
type OutputQueue interface {
Queue(output *searchoutputqueue.Search) error
}
OutputQueue - An interface used to queue search outputs
Click to show internal directories.
Click to hide internal directories.