mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 4 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 HeadBroadcaster

type HeadBroadcaster struct {
	mock.Mock
}

HeadBroadcaster is an autogenerated mock type for the HeadBroadcaster type

func (*HeadBroadcaster) Close

func (_m *HeadBroadcaster) Close() error

Close provides a mock function with given fields:

func (*HeadBroadcaster) Connect

func (_m *HeadBroadcaster) Connect(head *models.Head) error

Connect provides a mock function with given fields: head

func (*HeadBroadcaster) Healthy

func (_m *HeadBroadcaster) Healthy() error

Healthy provides a mock function with given fields:

func (*HeadBroadcaster) OnNewLongestChain

func (_m *HeadBroadcaster) OnNewLongestChain(ctx context.Context, head models.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

func (*HeadBroadcaster) Ready

func (_m *HeadBroadcaster) Ready() error

Ready provides a mock function with given fields:

func (*HeadBroadcaster) Start

func (_m *HeadBroadcaster) Start() error

Start provides a mock function with given fields:

func (*HeadBroadcaster) Subscribe

func (_m *HeadBroadcaster) Subscribe(callback types.HeadTrackable) func()

Subscribe provides a mock function with given fields: callback

type HeadTrackable

type HeadTrackable struct {
	mock.Mock
}

HeadTrackable is an autogenerated mock type for the HeadTrackable type

func (*HeadTrackable) Connect

func (_m *HeadTrackable) Connect(head *models.Head) error

Connect provides a mock function with given fields: head

func (*HeadTrackable) OnNewLongestChain

func (_m *HeadTrackable) OnNewLongestChain(ctx context.Context, head models.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

Jump to

Keyboard shortcuts

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