indexer

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChainReorgHandler added in v0.2.0

type MockChainReorgHandler struct {
	mock.Mock
}

MockChainReorgHandler is an autogenerated mock type for the ChainReorgHandler type

func NewMockChainReorgHandler added in v0.2.0

func NewMockChainReorgHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockChainReorgHandler

NewMockChainReorgHandler creates a new instance of MockChainReorgHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockChainReorgHandler) EXPECT added in v0.2.0

func (*MockChainReorgHandler) FindReorgPoint added in v0.2.0

func (_m *MockChainReorgHandler) FindReorgPoint(detectedAt uint64) (uint64, []byte, error)

FindReorgPoint provides a mock function with given fields: detectedAt

type MockChainReorgHandler_Expecter added in v0.2.0

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

func (*MockChainReorgHandler_Expecter) FindReorgPoint added in v0.2.0

func (_e *MockChainReorgHandler_Expecter) FindReorgPoint(detectedAt interface{}) *MockChainReorgHandler_FindReorgPoint_Call

FindReorgPoint is a helper method to define mock.On call

  • detectedAt uint64

type MockChainReorgHandler_FindReorgPoint_Call added in v0.2.0

type MockChainReorgHandler_FindReorgPoint_Call struct {
	*mock.Call
}

MockChainReorgHandler_FindReorgPoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindReorgPoint'

func (*MockChainReorgHandler_FindReorgPoint_Call) Return added in v0.2.0

func (*MockChainReorgHandler_FindReorgPoint_Call) Run added in v0.2.0

func (*MockChainReorgHandler_FindReorgPoint_Call) RunAndReturn added in v0.2.0

type MockIBlockTracker

type MockIBlockTracker struct {
	mock.Mock
}

MockIBlockTracker is an autogenerated mock type for the IBlockTracker type

func NewMockIBlockTracker

func NewMockIBlockTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIBlockTracker

NewMockIBlockTracker creates a new instance of MockIBlockTracker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockIBlockTracker) EXPECT

func (*MockIBlockTracker) GetLatestBlock

func (_m *MockIBlockTracker) GetLatestBlock() (uint64, []byte)

GetLatestBlock provides a mock function with no fields

func (*MockIBlockTracker) UpdateLatestBlock

func (_m *MockIBlockTracker) UpdateLatestBlock(ctx context.Context, block uint64, hash []byte) error

UpdateLatestBlock provides a mock function with given fields: ctx, block, hash

type MockIBlockTracker_Expecter

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

func (*MockIBlockTracker_Expecter) GetLatestBlock

GetLatestBlock is a helper method to define mock.On call

func (*MockIBlockTracker_Expecter) UpdateLatestBlock

func (_e *MockIBlockTracker_Expecter) UpdateLatestBlock(ctx interface{}, block interface{}, hash interface{}) *MockIBlockTracker_UpdateLatestBlock_Call

UpdateLatestBlock is a helper method to define mock.On call

  • ctx context.Context
  • block uint64
  • hash []byte

type MockIBlockTracker_GetLatestBlock_Call

type MockIBlockTracker_GetLatestBlock_Call struct {
	*mock.Call
}

MockIBlockTracker_GetLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlock'

func (*MockIBlockTracker_GetLatestBlock_Call) Return

func (*MockIBlockTracker_GetLatestBlock_Call) Run

func (*MockIBlockTracker_GetLatestBlock_Call) RunAndReturn

type MockIBlockTracker_UpdateLatestBlock_Call

type MockIBlockTracker_UpdateLatestBlock_Call struct {
	*mock.Call
}

MockIBlockTracker_UpdateLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLatestBlock'

func (*MockIBlockTracker_UpdateLatestBlock_Call) Return

func (*MockIBlockTracker_UpdateLatestBlock_Call) Run

func (*MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn

Jump to

Keyboard shortcuts

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