mocks

package
v10.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given fields:

func (*Client) CreateProducer

func (_m *Client) CreateProducer(_a0 pulsar.ProducerOptions) (pulsar.Producer, error)

CreateProducer provides a mock function with given fields: _a0

func (*Client) CreateReader

func (_m *Client) CreateReader(_a0 pulsar.ReaderOptions) (pulsar.Reader, error)

CreateReader provides a mock function with given fields: _a0

func (*Client) CreateTableView added in v10.0.8

func (_m *Client) CreateTableView(_a0 pulsar.TableViewOptions) (pulsar.TableView, error)

CreateTableView provides a mock function with given fields: _a0

func (*Client) Subscribe

func (_m *Client) Subscribe(_a0 pulsar.ConsumerOptions) (pulsar.Consumer, error)

Subscribe provides a mock function with given fields: _a0

func (*Client) TopicPartitions

func (_m *Client) TopicPartitions(topic string) ([]string, error)

TopicPartitions provides a mock function with given fields: topic

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func NewConsumer

func NewConsumer(t mockConstructorTestingTNewConsumer) *Consumer

NewConsumer creates a new instance of Consumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Consumer) Ack

func (_m *Consumer) Ack(_a0 pulsar.Message) error

Ack provides a mock function with given fields: _a0

func (*Consumer) AckID

func (_m *Consumer) AckID(_a0 pulsar.MessageID) error

AckID provides a mock function with given fields: _a0

func (*Consumer) Chan

func (_m *Consumer) Chan() <-chan pulsar.ConsumerMessage

Chan provides a mock function with given fields:

func (*Consumer) Close

func (_m *Consumer) Close()

Close provides a mock function with given fields:

func (*Consumer) Nack

func (_m *Consumer) Nack(_a0 pulsar.Message)

Nack provides a mock function with given fields: _a0

func (*Consumer) NackID

func (_m *Consumer) NackID(_a0 pulsar.MessageID)

NackID provides a mock function with given fields: _a0

func (*Consumer) Name

func (_m *Consumer) Name() string

Name provides a mock function with given fields:

func (*Consumer) Receive

func (_m *Consumer) Receive(_a0 context.Context) (pulsar.Message, error)

Receive provides a mock function with given fields: _a0

func (*Consumer) ReconsumeLater

func (_m *Consumer) ReconsumeLater(msg pulsar.Message, delay time.Duration)

ReconsumeLater provides a mock function with given fields: msg, delay

func (*Consumer) Seek

func (_m *Consumer) Seek(_a0 pulsar.MessageID) error

Seek provides a mock function with given fields: _a0

func (*Consumer) SeekByTime

func (_m *Consumer) SeekByTime(_a0 time.Time) error

SeekByTime provides a mock function with given fields: _a0

func (*Consumer) Subscription

func (_m *Consumer) Subscription() string

Subscription provides a mock function with given fields:

func (*Consumer) Unsubscribe

func (_m *Consumer) Unsubscribe() error

Unsubscribe provides a mock function with given fields:

type Message

type Message struct {
	mock.Mock
}

Message is an autogenerated mock type for the Message type

func NewMessage

func NewMessage(t mockConstructorTestingTNewMessage) *Message

NewMessage creates a new instance of Message. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Message) BrokerPublishTime added in v10.0.8

func (_m *Message) BrokerPublishTime() *time.Time

BrokerPublishTime provides a mock function with given fields:

func (*Message) EventTime

func (_m *Message) EventTime() time.Time

EventTime provides a mock function with given fields:

func (*Message) GetEncryptionContext

func (_m *Message) GetEncryptionContext() *pulsar.EncryptionContext

GetEncryptionContext provides a mock function with given fields:

func (*Message) GetReplicatedFrom

func (_m *Message) GetReplicatedFrom() string

GetReplicatedFrom provides a mock function with given fields:

func (*Message) GetSchemaValue

func (_m *Message) GetSchemaValue(v interface{}) error

GetSchemaValue provides a mock function with given fields: v

func (*Message) ID

func (_m *Message) ID() pulsar.MessageID

ID provides a mock function with given fields:

func (*Message) Index added in v10.0.8

func (_m *Message) Index() *uint64

Index provides a mock function with given fields:

func (*Message) IsReplicated

func (_m *Message) IsReplicated() bool

IsReplicated provides a mock function with given fields:

func (*Message) Key

func (_m *Message) Key() string

Key provides a mock function with given fields:

func (*Message) OrderingKey

func (_m *Message) OrderingKey() string

OrderingKey provides a mock function with given fields:

func (*Message) Payload

func (_m *Message) Payload() []byte

Payload provides a mock function with given fields:

func (*Message) ProducerName

func (_m *Message) ProducerName() string

ProducerName provides a mock function with given fields:

func (*Message) Properties

func (_m *Message) Properties() map[string]string

Properties provides a mock function with given fields:

func (*Message) PublishTime

func (_m *Message) PublishTime() time.Time

PublishTime provides a mock function with given fields:

func (*Message) RedeliveryCount

func (_m *Message) RedeliveryCount() uint32

RedeliveryCount provides a mock function with given fields:

func (*Message) SchemaVersion added in v10.0.8

func (_m *Message) SchemaVersion() []byte

SchemaVersion provides a mock function with given fields:

func (*Message) Topic

func (_m *Message) Topic() string

Topic provides a mock function with given fields:

type Producer

type Producer struct {
	mock.Mock
}

Producer is an autogenerated mock type for the Producer type

func NewProducer

func NewProducer(t mockConstructorTestingTNewProducer) *Producer

NewProducer creates a new instance of Producer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Producer) Close

func (_m *Producer) Close()

Close provides a mock function with given fields:

func (*Producer) Flush

func (_m *Producer) Flush() error

Flush provides a mock function with given fields:

func (*Producer) LastSequenceID

func (_m *Producer) LastSequenceID() int64

LastSequenceID provides a mock function with given fields:

func (*Producer) Name

func (_m *Producer) Name() string

Name provides a mock function with given fields:

func (*Producer) Send

Send provides a mock function with given fields: _a0, _a1

func (*Producer) SendAsync

func (_m *Producer) SendAsync(_a0 context.Context, _a1 *pulsar.ProducerMessage, _a2 func(pulsar.MessageID, *pulsar.ProducerMessage, error))

SendAsync provides a mock function with given fields: _a0, _a1, _a2

func (*Producer) Topic

func (_m *Producer) Topic() string

Topic provides a mock function with given fields:

Jump to

Keyboard shortcuts

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