Documentation ¶
Index ¶
- type CommonStore
- type PushWorkNotify
- type SequenceStore
- func (_m *SequenceStore) GetBlockHeaderByHash(hash []byte) (*types.Header, error)
- func (_m *SequenceStore) GetBlockSequence(seq int64) (*types.BlockSequence, error)
- func (_m *SequenceStore) GetSequenceByHash(hash []byte) (int64, error)
- func (_m *SequenceStore) LastHeader() *types.Header
- func (_m *SequenceStore) LoadBlockBySequence(seq int64) (*types.BlockDetail, int, error)
- func (_m *SequenceStore) LoadBlockLastSequence() (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonStore ¶
CommonStore is an autogenerated mock type for the CommonStore type
func (*CommonStore) GetKey ¶
func (_m *CommonStore) GetKey(key []byte) ([]byte, error)
GetKey provides a mock function with given fields: key
func (*CommonStore) List ¶
func (_m *CommonStore) List(prefix []byte) ([][]byte, error)
List provides a mock function with given fields: prefix
func (*CommonStore) PrefixCount ¶
func (_m *CommonStore) PrefixCount(prefix []byte) int64
PrefixCount provides a mock function with given fields: prefix
type PushWorkNotify ¶
PushWorkNotify is an autogenerated mock type for the PushWorkNotify type
func (*PushWorkNotify) AddTask ¶
func (_m *PushWorkNotify) AddTask(cb *types.BlockSeqCB)
AddTask provides a mock function with given fields: cb
func (*PushWorkNotify) UpdateSeq ¶
func (_m *PushWorkNotify) UpdateSeq(seq int64)
UpdateSeq provides a mock function with given fields: seq
type SequenceStore ¶
SequenceStore is an autogenerated mock type for the SequenceStore type
func (*SequenceStore) GetBlockHeaderByHash ¶
func (_m *SequenceStore) GetBlockHeaderByHash(hash []byte) (*types.Header, error)
GetBlockHeaderByHash provides a mock function with given fields: hash
func (*SequenceStore) GetBlockSequence ¶
func (_m *SequenceStore) GetBlockSequence(seq int64) (*types.BlockSequence, error)
GetBlockSequence provides a mock function with given fields: seq
func (*SequenceStore) GetSequenceByHash ¶
func (_m *SequenceStore) GetSequenceByHash(hash []byte) (int64, error)
GetSequenceByHash provides a mock function with given fields: hash
func (*SequenceStore) LastHeader ¶
func (_m *SequenceStore) LastHeader() *types.Header
LastHeader provides a mock function with given fields:
func (*SequenceStore) LoadBlockBySequence ¶
func (_m *SequenceStore) LoadBlockBySequence(seq int64) (*types.BlockDetail, int, error)
LoadBlockBySequence provides a mock function with given fields: seq
func (*SequenceStore) LoadBlockLastSequence ¶
func (_m *SequenceStore) LoadBlockLastSequence() (int64, error)
LoadBlockLastSequence provides a mock function with given fields: