mocks

package
v0.0.0-...-880306c Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INatsBus

type INatsBus struct {
	mock.Mock
}

INatsBus is an autogenerated mock type for the INatsBus type

func NewINatsBus

func NewINatsBus(t testing.TB) *INatsBus

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

func (*INatsBus) Close

func (_m *INatsBus) Close()

Close provides a mock function with given fields:

func (*INatsBus) Listen

func (_m *INatsBus) Listen(topic string, facts chan []byte)

Listen provides a mock function with given fields: topic, facts

func (*INatsBus) Publish

func (_m *INatsBus) Publish(topic string, data []byte)

Publish provides a mock function with given fields: topic, data

func (*INatsBus) Request

func (_m *INatsBus) Request(topic string, data []byte, timeout time.Duration) []byte

Request provides a mock function with given fields: topic, data, timeout

func (*INatsBus) Respond

func (_m *INatsBus) Respond(topic string, hopes chan *nats.Msg)

Respond provides a mock function with given fields: topic, hopes

Jump to

Keyboard shortcuts

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