blockssync

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./blocks.go

Generated by this command:

mockgen -typed -package=blockssync -destination=./mocks.go -source=./blocks.go

Package blockssync is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(ctx context.Context, logger *zap.Logger, requests <-chan []types.BlockID, fetcher blockFetcher) error

Sync requests last specified blocks in background.

Types

type MockblockFetcher

type MockblockFetcher struct {
	// contains filtered or unexported fields
}

MockblockFetcher is a mock of blockFetcher interface.

func NewMockblockFetcher

func NewMockblockFetcher(ctrl *gomock.Controller) *MockblockFetcher

NewMockblockFetcher creates a new mock instance.

func (*MockblockFetcher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockblockFetcher) GetBlocks

func (m *MockblockFetcher) GetBlocks(arg0 context.Context, arg1 []types.BlockID) error

GetBlocks mocks base method.

type MockblockFetcherMockRecorder

type MockblockFetcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockblockFetcherMockRecorder is the mock recorder for MockblockFetcher.

func (*MockblockFetcherMockRecorder) GetBlocks

func (mr *MockblockFetcherMockRecorder) GetBlocks(arg0, arg1 any) *blockFetcherGetBlocksCall

GetBlocks indicates an expected call of GetBlocks.

Jump to

Keyboard shortcuts

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