mocks

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.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 Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func (*Publisher) PublishAsync

func (_m *Publisher) PublishAsync(ctx context.Context, event *queuesgo.Event) (<-chan queuesgo.PublicationResult, error)

PublishAsync provides a mock function with given fields: ctx, event

func (*Publisher) PublishSync

func (_m *Publisher) PublishSync(ctx context.Context, event *queuesgo.Event) (string, error)

PublishSync provides a mock function with given fields: ctx, event

type Subscriber

type Subscriber struct {
	mock.Mock
}

Subscriber is an autogenerated mock type for the Subscriber type

func (*Subscriber) RegisterFunction

func (_m *Subscriber) RegisterFunction(eventName string, handler queuesgo.HandlerFunc) error

RegisterFunction provides a mock function with given fields: eventName, handler

func (*Subscriber) Subscribe

func (_m *Subscriber) Subscribe(ctx context.Context) error

Subscribe provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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