Documentation ¶
Overview ¶
Package mock_blockindex is a generated GoMock package.
Package mock_blockindex is a generated GoMock package.
Index ¶
- type MockBloomFilterIndexer
- func (m *MockBloomFilterIndexer) BlockFilterByHeight(arg0 uint64) (bloom.BloomFilter, error)
- func (m *MockBloomFilterIndexer) DeleteTipBlock(arg0 context.Context, arg1 *block.Block) error
- func (m *MockBloomFilterIndexer) EXPECT() *MockBloomFilterIndexerMockRecorder
- func (m *MockBloomFilterIndexer) FilterBlocksInRange(arg0 *logfilter.LogFilter, arg1, arg2, arg3 uint64) ([]uint64, error)
- func (m *MockBloomFilterIndexer) Height() (uint64, error)
- func (m *MockBloomFilterIndexer) PutBlock(arg0 context.Context, arg1 *block.Block) error
- func (m *MockBloomFilterIndexer) RangeBloomFilterNumElements() uint64
- func (m *MockBloomFilterIndexer) Start(ctx context.Context) error
- func (m *MockBloomFilterIndexer) Stop(ctx context.Context) error
- type MockBloomFilterIndexerMockRecorder
- func (mr *MockBloomFilterIndexerMockRecorder) BlockFilterByHeight(arg0 interface{}) *gomock.Call
- func (mr *MockBloomFilterIndexerMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBloomFilterIndexerMockRecorder) FilterBlocksInRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockBloomFilterIndexerMockRecorder) Height() *gomock.Call
- func (mr *MockBloomFilterIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBloomFilterIndexerMockRecorder) RangeBloomFilterNumElements() *gomock.Call
- func (mr *MockBloomFilterIndexerMockRecorder) Start(ctx interface{}) *gomock.Call
- func (mr *MockBloomFilterIndexerMockRecorder) Stop(ctx interface{}) *gomock.Call
- type MockIndexer
- func (m *MockIndexer) DeleteTipBlock(arg0 context.Context, arg1 *block.Block) error
- func (m *MockIndexer) EXPECT() *MockIndexerMockRecorder
- func (m *MockIndexer) GetActionCountByAddress(arg0 hash.Hash160) (uint64, error)
- func (m *MockIndexer) GetActionHashFromIndex(arg0, arg1 uint64) ([][]byte, error)
- func (m *MockIndexer) GetActionIndex(arg0 []byte) (*blockindex.ActionIndex, error)
- func (m *MockIndexer) GetActionsByAddress(arg0 hash.Hash160, arg1, arg2 uint64) ([][]byte, error)
- func (m *MockIndexer) GetBlockHash(height uint64) (hash.Hash256, error)
- func (m *MockIndexer) GetBlockHeight(hash hash.Hash256) (uint64, error)
- func (m *MockIndexer) GetBlockIndex(arg0 uint64) (*blockindex.BlockIndex, error)
- func (m *MockIndexer) GetTotalActions() (uint64, error)
- func (m *MockIndexer) Height() (uint64, error)
- func (m *MockIndexer) PutBlock(arg0 context.Context, arg1 *block.Block) error
- func (m *MockIndexer) PutBlocks(arg0 context.Context, arg1 []*block.Block) error
- func (m *MockIndexer) Start(arg0 context.Context) error
- func (m *MockIndexer) Stop(arg0 context.Context) error
- type MockIndexerMockRecorder
- func (mr *MockIndexerMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) GetActionCountByAddress(arg0 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) GetActionHashFromIndex(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) GetActionIndex(arg0 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) GetActionsByAddress(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) GetBlockHash(height interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) GetBlockHeight(hash interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) GetBlockIndex(arg0 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) GetTotalActions() *gomock.Call
- func (mr *MockIndexerMockRecorder) Height() *gomock.Call
- func (mr *MockIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) PutBlocks(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockIndexerMockRecorder) Stop(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBloomFilterIndexer ¶
type MockBloomFilterIndexer struct {
// contains filtered or unexported fields
}
MockBloomFilterIndexer is a mock of BloomFilterIndexer interface.
func NewMockBloomFilterIndexer ¶
func NewMockBloomFilterIndexer(ctrl *gomock.Controller) *MockBloomFilterIndexer
NewMockBloomFilterIndexer creates a new mock instance.
func (*MockBloomFilterIndexer) BlockFilterByHeight ¶
func (m *MockBloomFilterIndexer) BlockFilterByHeight(arg0 uint64) (bloom.BloomFilter, error)
BlockFilterByHeight mocks base method.
func (*MockBloomFilterIndexer) DeleteTipBlock ¶
DeleteTipBlock mocks base method.
func (*MockBloomFilterIndexer) EXPECT ¶
func (m *MockBloomFilterIndexer) EXPECT() *MockBloomFilterIndexerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBloomFilterIndexer) FilterBlocksInRange ¶
func (m *MockBloomFilterIndexer) FilterBlocksInRange(arg0 *logfilter.LogFilter, arg1, arg2, arg3 uint64) ([]uint64, error)
FilterBlocksInRange mocks base method.
func (*MockBloomFilterIndexer) Height ¶
func (m *MockBloomFilterIndexer) Height() (uint64, error)
Height mocks base method.
func (*MockBloomFilterIndexer) RangeBloomFilterNumElements ¶
func (m *MockBloomFilterIndexer) RangeBloomFilterNumElements() uint64
RangeBloomFilterNumElements mocks base method.
type MockBloomFilterIndexerMockRecorder ¶
type MockBloomFilterIndexerMockRecorder struct {
// contains filtered or unexported fields
}
MockBloomFilterIndexerMockRecorder is the mock recorder for MockBloomFilterIndexer.
func (*MockBloomFilterIndexerMockRecorder) BlockFilterByHeight ¶
func (mr *MockBloomFilterIndexerMockRecorder) BlockFilterByHeight(arg0 interface{}) *gomock.Call
BlockFilterByHeight indicates an expected call of BlockFilterByHeight.
func (*MockBloomFilterIndexerMockRecorder) DeleteTipBlock ¶
func (mr *MockBloomFilterIndexerMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call
DeleteTipBlock indicates an expected call of DeleteTipBlock.
func (*MockBloomFilterIndexerMockRecorder) FilterBlocksInRange ¶
func (mr *MockBloomFilterIndexerMockRecorder) FilterBlocksInRange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
FilterBlocksInRange indicates an expected call of FilterBlocksInRange.
func (*MockBloomFilterIndexerMockRecorder) Height ¶
func (mr *MockBloomFilterIndexerMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height.
func (*MockBloomFilterIndexerMockRecorder) PutBlock ¶
func (mr *MockBloomFilterIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call
PutBlock indicates an expected call of PutBlock.
func (*MockBloomFilterIndexerMockRecorder) RangeBloomFilterNumElements ¶
func (mr *MockBloomFilterIndexerMockRecorder) RangeBloomFilterNumElements() *gomock.Call
RangeBloomFilterNumElements indicates an expected call of RangeBloomFilterNumElements.
func (*MockBloomFilterIndexerMockRecorder) Start ¶
func (mr *MockBloomFilterIndexerMockRecorder) Start(ctx interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockBloomFilterIndexerMockRecorder) Stop ¶
func (mr *MockBloomFilterIndexerMockRecorder) Stop(ctx interface{}) *gomock.Call
Stop indicates an expected call of Stop.
type MockIndexer ¶
type MockIndexer struct {
// contains filtered or unexported fields
}
MockIndexer is a mock of Indexer interface.
func NewMockIndexer ¶
func NewMockIndexer(ctrl *gomock.Controller) *MockIndexer
NewMockIndexer creates a new mock instance.
func (*MockIndexer) DeleteTipBlock ¶
DeleteTipBlock mocks base method.
func (*MockIndexer) EXPECT ¶
func (m *MockIndexer) EXPECT() *MockIndexerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIndexer) GetActionCountByAddress ¶
func (m *MockIndexer) GetActionCountByAddress(arg0 hash.Hash160) (uint64, error)
GetActionCountByAddress mocks base method.
func (*MockIndexer) GetActionHashFromIndex ¶
func (m *MockIndexer) GetActionHashFromIndex(arg0, arg1 uint64) ([][]byte, error)
GetActionHashFromIndex mocks base method.
func (*MockIndexer) GetActionIndex ¶
func (m *MockIndexer) GetActionIndex(arg0 []byte) (*blockindex.ActionIndex, error)
GetActionIndex mocks base method.
func (*MockIndexer) GetActionsByAddress ¶
GetActionsByAddress mocks base method.
func (*MockIndexer) GetBlockHash ¶
func (m *MockIndexer) GetBlockHash(height uint64) (hash.Hash256, error)
GetBlockHash mocks base method.
func (*MockIndexer) GetBlockHeight ¶
func (m *MockIndexer) GetBlockHeight(hash hash.Hash256) (uint64, error)
GetBlockHeight mocks base method.
func (*MockIndexer) GetBlockIndex ¶
func (m *MockIndexer) GetBlockIndex(arg0 uint64) (*blockindex.BlockIndex, error)
GetBlockIndex mocks base method.
func (*MockIndexer) GetTotalActions ¶
func (m *MockIndexer) GetTotalActions() (uint64, error)
GetTotalActions mocks base method.
func (*MockIndexer) Height ¶
func (m *MockIndexer) Height() (uint64, error)
Height mocks base method.
type MockIndexerMockRecorder ¶
type MockIndexerMockRecorder struct {
// contains filtered or unexported fields
}
MockIndexerMockRecorder is the mock recorder for MockIndexer.
func (*MockIndexerMockRecorder) DeleteTipBlock ¶
func (mr *MockIndexerMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call
DeleteTipBlock indicates an expected call of DeleteTipBlock.
func (*MockIndexerMockRecorder) GetActionCountByAddress ¶
func (mr *MockIndexerMockRecorder) GetActionCountByAddress(arg0 interface{}) *gomock.Call
GetActionCountByAddress indicates an expected call of GetActionCountByAddress.
func (*MockIndexerMockRecorder) GetActionHashFromIndex ¶
func (mr *MockIndexerMockRecorder) GetActionHashFromIndex(arg0, arg1 interface{}) *gomock.Call
GetActionHashFromIndex indicates an expected call of GetActionHashFromIndex.
func (*MockIndexerMockRecorder) GetActionIndex ¶
func (mr *MockIndexerMockRecorder) GetActionIndex(arg0 interface{}) *gomock.Call
GetActionIndex indicates an expected call of GetActionIndex.
func (*MockIndexerMockRecorder) GetActionsByAddress ¶
func (mr *MockIndexerMockRecorder) GetActionsByAddress(arg0, arg1, arg2 interface{}) *gomock.Call
GetActionsByAddress indicates an expected call of GetActionsByAddress.
func (*MockIndexerMockRecorder) GetBlockHash ¶
func (mr *MockIndexerMockRecorder) GetBlockHash(height interface{}) *gomock.Call
GetBlockHash indicates an expected call of GetBlockHash.
func (*MockIndexerMockRecorder) GetBlockHeight ¶
func (mr *MockIndexerMockRecorder) GetBlockHeight(hash interface{}) *gomock.Call
GetBlockHeight indicates an expected call of GetBlockHeight.
func (*MockIndexerMockRecorder) GetBlockIndex ¶
func (mr *MockIndexerMockRecorder) GetBlockIndex(arg0 interface{}) *gomock.Call
GetBlockIndex indicates an expected call of GetBlockIndex.
func (*MockIndexerMockRecorder) GetTotalActions ¶
func (mr *MockIndexerMockRecorder) GetTotalActions() *gomock.Call
GetTotalActions indicates an expected call of GetTotalActions.
func (*MockIndexerMockRecorder) Height ¶
func (mr *MockIndexerMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height.
func (*MockIndexerMockRecorder) PutBlock ¶
func (mr *MockIndexerMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call
PutBlock indicates an expected call of PutBlock.
func (*MockIndexerMockRecorder) PutBlocks ¶
func (mr *MockIndexerMockRecorder) PutBlocks(arg0, arg1 interface{}) *gomock.Call
PutBlocks indicates an expected call of PutBlocks.
func (*MockIndexerMockRecorder) Start ¶
func (mr *MockIndexerMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockIndexerMockRecorder) Stop ¶
func (mr *MockIndexerMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop.