mocks

package
v1.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 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 Checker

type Checker struct {
	mock.Mock
}

Checker is an autogenerated mock type for the Checker type

func NewChecker added in v1.5.0

func NewChecker(t testing.TB) *Checker

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

func (*Checker) Close

func (_m *Checker) Close() error

Close provides a mock function with given fields:

func (*Checker) IsHealthy

func (_m *Checker) IsHealthy() (bool, map[string]error)

IsHealthy provides a mock function with given fields:

func (*Checker) IsReady

func (_m *Checker) IsReady() (bool, map[string]error)

IsReady provides a mock function with given fields:

func (*Checker) Register

func (_m *Checker) Register(name string, service services.Checkable) error

Register provides a mock function with given fields: name, service

func (*Checker) Start

func (_m *Checker) Start() error

Start provides a mock function with given fields:

func (*Checker) Unregister

func (_m *Checker) Unregister(name string) error

Unregister provides a mock function with given fields: name

type Config added in v1.4.0

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) LogSQL added in v1.4.0

func (_m *Config) LogSQL() bool

LogSQL provides a mock function with given fields:

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) 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) (services.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 services.Event

Events provides a mock function with given fields:

func (*Subscription) InterestedIn

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

InterestedIn provides a mock function with given fields: event

func (*Subscription) Send

func (_m *Subscription) Send(event services.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