mocks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) Close

func (_m *EventBroadcaster) Close() error

Close provides a mock function with given fields:

func (*EventBroadcaster) Healthy

func (_m *EventBroadcaster) Healthy() error

Healthy provides a mock function with given fields:

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) Ready

func (_m *EventBroadcaster) Ready() error

Ready provides a mock function with given fields:

func (*EventBroadcaster) Start

func (_m *EventBroadcaster) Start() error

Start 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) ChannelName

func (_m *Subscription) ChannelName() string

ChannelName provides a mock function with given fields:

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:

func (*Subscription) InterestedIn

func (_m *Subscription) InterestedIn(event postgres.Event) bool

InterestedIn provides a mock function with given fields: event

func (*Subscription) Send

func (_m *Subscription) Send(event postgres.Event)

Send provides a mock function with given fields: event

Jump to

Keyboard shortcuts

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