es

package
v0.0.0-...-ecf8d90 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 {
	GetSuperhero(superheroID string) (s *model.Superhero, err error)
	GetDocumentID(superheroID string) (string, error)
	UpdateProfilePicture(superheroID string, pp model.ProfilePicture) error
}

ES interface defines es methods.

func New

func New(client *elastic.Client, index string) ES

New returns value of type es which implements all ES methods.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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