Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubSub ¶
PubSub is an autogenerated mock type for the PubSub type
func NewPubSub ¶
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) 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 Publisher ¶
Publisher is an autogenerated mock type for the Publisher type
func NewPublisher ¶
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.
type Subscriber ¶
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:
type SubscriberOption ¶
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