mocks

package
v0.0.113 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

type PubSub struct {
	mock.Mock
}

PubSub is an autogenerated mock type for the PubSub type

func NewPubSub

func NewPubSub(t interface {
	mock.TestingT
	Cleanup(func())
}) *PubSub

NewPubSub creates a new instance of PubSub. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PubSub) AdminClient added in v0.0.68

func (_m *PubSub) AdminClient() (pubsubx.PubSubAdminClient, error)

AdminClient provides a mock function with given fields:

func (*PubSub) Close

func (_m *PubSub) Close() error

Close provides a mock function with given fields:

func (*PubSub) Publisher

func (_m *PubSub) Publisher() pubsubx.Publisher

Publisher provides a mock function with given fields:

func (*PubSub) Subscriber

func (_m *PubSub) Subscriber(group string, topics []messagex.Topic, opts ...pubsubx.SubscriberOption) (pubsubx.Subscriber, error)

Subscriber provides a mock function with given fields: group, topics, opts

type PubSubAdminClient added in v0.0.68

type PubSubAdminClient struct {
	mock.Mock
}

PubSubAdminClient is an autogenerated mock type for the PubSubAdminClient type

func NewPubSubAdminClient added in v0.0.68

func NewPubSubAdminClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *PubSubAdminClient

NewPubSubAdminClient creates a new instance of PubSubAdminClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PubSubAdminClient) Close added in v0.0.68

func (_m *PubSubAdminClient) Close()

Close provides a mock function with given fields:

func (*PubSubAdminClient) CreateTopic added in v0.0.68

func (_m *PubSubAdminClient) CreateTopic(ctx context.Context, partitions int32, replicationFactor int16, topic string, configs ...map[string]*string) (kadm.CreateTopicResponse, error)

CreateTopic provides a mock function with given fields: ctx, partitions, replicationFactor, topic, configs

func (*PubSubAdminClient) DeleteTopic added in v0.0.68

func (_m *PubSubAdminClient) DeleteTopic(ctx context.Context, topic string) (kadm.DeleteTopicResponse, error)

DeleteTopic provides a mock function with given fields: ctx, topic

func (*PubSubAdminClient) HealthCheck added in v0.0.68

func (_m *PubSubAdminClient) HealthCheck(ctx context.Context) error

HealthCheck provides a mock function with given fields: ctx

func (*PubSubAdminClient) ListTopics added in v0.0.68

func (_m *PubSubAdminClient) ListTopics(ctx context.Context, topics ...string) (kadm.TopicDetails, error)

ListTopics provides a mock function with given fields: ctx, topics

type PubSubOption added in v0.0.68

type PubSubOption struct {
	mock.Mock
}

PubSubOption is an autogenerated mock type for the PubSubOption type

func NewPubSubOption added in v0.0.68

func NewPubSubOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *PubSubOption

NewPubSubOption creates a new instance of PubSubOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PubSubOption) Execute added in v0.0.68

func (_m *PubSubOption) Execute(_a0 *pubsubx.PubSubOptions)

Execute provides a mock function with given fields: _a0

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher

NewPublisher creates a new instance of Publisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Publisher) Close

func (_m *Publisher) Close() error

Close provides a mock function with given fields:

func (*Publisher) PublishAsync

func (_m *Publisher) PublishAsync(ctx context.Context, topic messagex.Topic, messages ...*messagex.Message) error

PublishAsync provides a mock function with given fields: ctx, topic, messages

func (*Publisher) PublishSync

func (_m *Publisher) PublishSync(ctx context.Context, topic messagex.Topic, messages ...*messagex.Message) (pubsubx.Errors, error)

PublishSync provides a mock function with given fields: ctx, topic, messages

type Subscriber

type Subscriber struct {
	mock.Mock
}

Subscriber is an autogenerated mock type for the Subscriber type

func NewSubscriber

func NewSubscriber(t interface {
	mock.TestingT
	Cleanup(func())
}) *Subscriber

NewSubscriber creates a new instance of Subscriber. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Subscriber) Close

func (_m *Subscriber) Close() error

Close provides a mock function with given fields:

func (*Subscriber) Health added in v0.0.69

func (_m *Subscriber) Health() error

Health provides a mock function with given fields:

func (*Subscriber) Subscribe

func (_m *Subscriber) Subscribe(ctx context.Context, topicHandlers pubsubx.Handlers) error

Subscribe provides a mock function with given fields: ctx, topicHandlers

type SubscriberOption

type SubscriberOption struct {
	mock.Mock
}

SubscriberOption is an autogenerated mock type for the SubscriberOption type

func NewSubscriberOption

func NewSubscriberOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriberOption

NewSubscriberOption creates a new instance of SubscriberOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SubscriberOption) Execute

func (_m *SubscriberOption) Execute(_a0 *pubsubx.SubscriberOptions)

Execute provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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