natsmockery

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsPublisher

type NatsPublisher struct {
	mock.Mock
}

NatsPublisher is an autogenerated mock type for the natsPublisher type

func NewNatsPublisher

func NewNatsPublisher(t mockConstructorTestingTNewNatsPublisher) *NatsPublisher

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

func (*NatsPublisher) PublishMsg

func (_m *NatsPublisher) PublishMsg(m *nats.Msg) error

PublishMsg provides a mock function with given fields: m

func (*NatsPublisher) RequestMsgWithContext

func (_m *NatsPublisher) RequestMsgWithContext(ctx context.Context, msg *nats.Msg) (*nats.Msg, error)

RequestMsgWithContext provides a mock function with given fields: ctx, msg

Jump to

Keyboard shortcuts

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