blockssync

package
v1.7.0-alpha.0-nomain Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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 MockblockFetcherGetBlocksCall added in v1.4.0

type MockblockFetcherGetBlocksCall struct {
	*gomock.Call
}

MockblockFetcherGetBlocksCall wrap *gomock.Call

func (*MockblockFetcherGetBlocksCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockblockFetcherGetBlocksCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockblockFetcherGetBlocksCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockblockFetcherMockRecorder

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

MockblockFetcherMockRecorder is the mock recorder for MockblockFetcher.

func (*MockblockFetcherMockRecorder) GetBlocks

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