mock

package
v0.2.0-nightly.20220218 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

Consumer is a mock of Consumer interface.

func NewConsumer

func NewConsumer(ctrl *gomock.Controller) *Consumer

NewConsumer creates a new mock instance.

func (*Consumer) Ack

func (m *Consumer) Ack() error

Ack mocks base method.

func (*Consumer) Close

func (m *Consumer) Close()

Close mocks base method.

func (*Consumer) EXPECT

func (m *Consumer) EXPECT() *ConsumerMockRecorder

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

func (*Consumer) Get

func (m *Consumer) Get(arg0 context.Context) (*kafka0.Message, string, error)

Get mocks base method.

func (*Consumer) StartFrom

func (m *Consumer) StartFrom(arg0 kafka.Config, arg1 string) error

StartFrom mocks base method.

type ConsumerMockRecorder

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

ConsumerMockRecorder is the mock recorder for Consumer.

func (*ConsumerMockRecorder) Ack

func (mr *ConsumerMockRecorder) Ack() *gomock.Call

Ack indicates an expected call of Ack.

func (*ConsumerMockRecorder) Close

func (mr *ConsumerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*ConsumerMockRecorder) Get

func (mr *ConsumerMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*ConsumerMockRecorder) StartFrom

func (mr *ConsumerMockRecorder) StartFrom(arg0, arg1 interface{}) *gomock.Call

StartFrom indicates an expected call of StartFrom.

type Producer

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

Producer is a mock of Producer interface.

func NewProducer

func NewProducer(ctrl *gomock.Controller) *Producer

NewProducer creates a new mock instance.

func (*Producer) Close

func (m *Producer) Close()

Close mocks base method.

func (*Producer) EXPECT

func (m *Producer) EXPECT() *ProducerMockRecorder

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

func (*Producer) Send

func (m *Producer) Send(arg0, arg1 []byte) error

Send mocks base method.

type ProducerMockRecorder

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

ProducerMockRecorder is the mock recorder for Producer.

func (*ProducerMockRecorder) Close

func (mr *ProducerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*ProducerMockRecorder) Send

func (mr *ProducerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call

Send indicates an expected call of Send.

Jump to

Keyboard shortcuts

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