mocks

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericBulkProcessor added in v0.17.0

type GenericBulkProcessor struct {
	mock.Mock
}

GenericBulkProcessor is an autogenerated mock type for the GenericBulkProcessor type

func (*GenericBulkProcessor) Add added in v0.17.0

Add provides a mock function with given fields: request

func (*GenericBulkProcessor) Close added in v0.17.0

func (_m *GenericBulkProcessor) Close() error

Close provides a mock function with given fields:

func (*GenericBulkProcessor) Flush added in v0.17.0

func (_m *GenericBulkProcessor) Flush() error

Flush provides a mock function with given fields:

func (*GenericBulkProcessor) RetrieveKafkaKey added in v0.17.0

func (_m *GenericBulkProcessor) RetrieveKafkaKey(request elasticsearch.GenericBulkableRequest, logger log.Logger, client metrics.Client) string

RetrieveKafkaKey provides a mock function with given fields: request, logger, client

func (*GenericBulkProcessor) Start added in v0.17.0

func (_m *GenericBulkProcessor) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

func (*GenericBulkProcessor) Stop added in v0.17.0

func (_m *GenericBulkProcessor) Stop() error

Stop provides a mock function with given fields:

type GenericBulkableRequest added in v0.17.0

type GenericBulkableRequest struct {
	mock.Mock
}

GenericBulkableRequest is an autogenerated mock type for the GenericBulkableRequest type

func (*GenericBulkableRequest) Source added in v0.17.0

func (_m *GenericBulkableRequest) Source() ([]string, error)

Source provides a mock function with given fields:

func (*GenericBulkableRequest) String added in v0.17.0

func (_m *GenericBulkableRequest) String() string

String provides a mock function with given fields:

type GenericClient added in v0.17.0

type GenericClient struct {
	mock.Mock
}

GenericClient is an autogenerated mock type for the GenericClient type

func (*GenericClient) CountByQuery added in v0.17.0

func (_m *GenericClient) CountByQuery(ctx context.Context, index string, query string) (int64, error)

CountByQuery provides a mock function with given fields: ctx, index, query

func (*GenericClient) CreateIndex added in v0.17.0

func (_m *GenericClient) CreateIndex(ctx context.Context, index string) error

CreateIndex provides a mock function with given fields: ctx, index

func (*GenericClient) IsNotFoundError added in v0.17.0

func (_m *GenericClient) IsNotFoundError(err error) bool

IsNotFoundError provides a mock function with given fields: err

func (*GenericClient) PutMapping added in v0.17.0

func (_m *GenericClient) PutMapping(ctx context.Context, index string, root string, key string, valueType string) error

PutMapping provides a mock function with given fields: ctx, index, root, key, valueType

func (*GenericClient) RunBulkProcessor added in v0.17.0

RunBulkProcessor provides a mock function with given fields: ctx, p

func (*GenericClient) ScanByQuery added in v0.17.0

ScanByQuery provides a mock function with given fields: ctx, request

func (*GenericClient) Search added in v0.17.0

Search provides a mock function with given fields: ctx, request

func (*GenericClient) SearchByQuery added in v0.17.0

SearchByQuery provides a mock function with given fields: ctx, request

func (*GenericClient) SearchForOneClosedExecution added in v0.17.0

SearchForOneClosedExecution provides a mock function with given fields: ctx, index, request

func (*GenericClient) SearchRaw added in v0.24.0

func (_m *GenericClient) SearchRaw(ctx context.Context, index string, query string) (*elasticsearch.RawResponse, error)

Jump to

Keyboard shortcuts

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