es

package
v0.0.0-...-cd006e5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockElasticSearchClient

func MockElasticSearchClient(endpoint string, responseMock string) (*elastic.Client, error)

Types

type DummyHttpClient

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

func MockHttpClient

func MockHttpClient(responseMock string) *DummyHttpClient

func (*DummyHttpClient) Do

type ES

type ES interface {
	GetSuggestions(req *model.Request, likeSuperheroIDs []string) (superheros []model.Superhero, err error)
}

ES interface defines es methods.

func New

func New(ecl *elastic.Client, index string, batchSize int) ES

New creates a client connection to Elasticsearch.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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