mock_elasticsearch

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package mock_elasticsearch is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockESClient

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

MockESClient is a mock of ESClient interface.

func NewMockESClient

func NewMockESClient(ctrl *gomock.Controller) *MockESClient

NewMockESClient creates a new mock instance.

func (*MockESClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockESClient) IndexDoc

func (m *MockESClient) IndexDoc(ctx context.Context, index, docType, id string, body interface{}) (*elastic.IndexResponse, error)

IndexDoc mocks base method.

func (*MockESClient) IndexDocWithoutType added in v0.53.1

func (m *MockESClient) IndexDocWithoutType(ctx context.Context, index, id string, body interface{}) (*elastic.IndexResponse, error)

IndexDocWithoutType mocks base method.

func (*MockESClient) Ping

func (m *MockESClient) Ping(ctx context.Context, url string) (*elastic.PingResult, int, error)

Ping mocks base method.

func (*MockESClient) SearchDoc

func (m *MockESClient) SearchDoc(ctx context.Context, indices []string, docType string, query elastic.Query, sorts []elastic.Sorter, from, size int) (*elastic.SearchResult, error)

SearchDoc mocks base method.

type MockESClientMockRecorder

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

MockESClientMockRecorder is the mock recorder for MockESClient.

func (*MockESClientMockRecorder) IndexDoc

func (mr *MockESClientMockRecorder) IndexDoc(ctx, index, docType, id, body interface{}) *gomock.Call

IndexDoc indicates an expected call of IndexDoc.

func (*MockESClientMockRecorder) IndexDocWithoutType added in v0.53.1

func (mr *MockESClientMockRecorder) IndexDocWithoutType(ctx, index, id, body interface{}) *gomock.Call

IndexDocWithoutType indicates an expected call of IndexDocWithoutType.

func (*MockESClientMockRecorder) Ping

func (mr *MockESClientMockRecorder) Ping(ctx, url interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockESClientMockRecorder) SearchDoc

func (mr *MockESClientMockRecorder) SearchDoc(ctx, indices, docType, query, sorts, from, size interface{}) *gomock.Call

SearchDoc indicates an expected call of SearchDoc.

Jump to

Keyboard shortcuts

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