mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBroadcaster

type EventBroadcaster struct {
	mock.Mock
}

EventBroadcaster is an autogenerated mock type for the EventBroadcaster type

func (*EventBroadcaster) Notify

func (_m *EventBroadcaster) Notify(channel string, payload string) error

Notify provides a mock function with given fields: channel, payload

func (*EventBroadcaster) NotifyInsideGormTx

func (_m *EventBroadcaster) NotifyInsideGormTx(tx *gorm.DB, channel string, payload string) error

NotifyInsideGormTx provides a mock function with given fields: tx, channel, payload

func (*EventBroadcaster) Start

func (_m *EventBroadcaster) Start() error

Start provides a mock function with given fields:

func (*EventBroadcaster) Stop

func (_m *EventBroadcaster) Stop() error

Stop provides a mock function with given fields:

func (*EventBroadcaster) Subscribe

func (_m *EventBroadcaster) Subscribe(channel string, payloadFilter string) (postgres.Subscription, error)

Subscribe provides a mock function with given fields: channel, payloadFilter

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func (*Subscription) Close

func (_m *Subscription) Close()

Close provides a mock function with given fields:

func (*Subscription) Events

func (_m *Subscription) Events() <-chan postgres.Event

Events provides a mock function with given fields:

Jump to

Keyboard shortcuts

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