mocks

package
v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonStore

type CommonStore struct {
	mock.Mock
}

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

func (*CommonStore) Set

func (_m *CommonStore) Set(key []byte, value []byte) error

Set provides a mock function with given fields: key, value

func (*CommonStore) SetSync

func (_m *CommonStore) SetSync(key []byte, value []byte) error

SetSync provides a mock function with given fields: key, value

type PostService added in v1.65.0

type PostService struct {
	mock.Mock
}

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

type SequenceStore struct {
	mock.Mock
}

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:

Jump to

Keyboard shortcuts

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