Documentation ¶
Index ¶
- type CommonStore
- type PostService
- 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 PostService ¶ added in v1.65.0
PostService is an autogenerated mock type for the PostService type
func (*PostService) PostData ¶ added in v1.65.0
func (_m *PostService) PostData(subscribe *types.PushSubscribeReq, postdata []byte, seq int64) error
PostData provides a mock function with given fields: subscribe, postdata, 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: