Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockConnection
- func (m *MockConnection) BlockByHash(ctx context.Context, hash string, full bool) (*eth.Block, error)
- func (m *MockConnection) BlockByNumber(ctx context.Context, number uint64, full bool) (*eth.Block, error)
- func (m *MockConnection) BlockNumber(ctx context.Context) (uint64, error)
- func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
- func (m *MockConnection) GetLogs(ctx context.Context, filter eth.LogFilter) ([]eth.Log, error)
- func (m *MockConnection) NewHeads(ctx context.Context) (websocket.Subscription, error)
- func (m *MockConnection) NewPendingTransaction(ctx context.Context, full ...bool) (websocket.Subscription, error)
- func (m *MockConnection) Request(ctx context.Context, r *jsonrpc.Request) (*jsonrpc.RawResponse, error)
- func (m *MockConnection) Subscribe(ctx context.Context, r *jsonrpc.Request) (websocket.Subscription, error)
- func (m *MockConnection) TransactionByHash(ctx context.Context, hash string) (*eth.Transaction, error)
- func (m *MockConnection) TransactionReceipt(ctx context.Context, hash string) (*eth.TransactionReceipt, error)
- func (m *MockConnection) URL() string
- type MockConnectionMockRecorder
- func (mr *MockConnectionMockRecorder) BlockByHash(ctx, hash, full interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) BlockByNumber(ctx, number, full interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) BlockNumber(ctx interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) GetLogs(ctx, filter interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) NewHeads(ctx interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) NewPendingTransaction(ctx interface{}, full ...interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Request(ctx, r interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Subscribe(ctx, r interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) TransactionByHash(ctx, hash interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) TransactionReceipt(ctx, hash interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) URL() *gomock.Call
- type MockSubscription
- func (m *MockSubscription) Ch() chan *jsonrpc.Notification
- func (m *MockSubscription) Done() <-chan struct{}
- func (m *MockSubscription) EXPECT() *MockSubscriptionMockRecorder
- func (m *MockSubscription) Err() error
- func (m *MockSubscription) ID() string
- func (m *MockSubscription) Response() *jsonrpc.RawResponse
- func (m *MockSubscription) Unsubscribe(ctx context.Context) error
- type MockSubscriptionMockRecorder
- func (mr *MockSubscriptionMockRecorder) Ch() *gomock.Call
- func (mr *MockSubscriptionMockRecorder) Done() *gomock.Call
- func (mr *MockSubscriptionMockRecorder) Err() *gomock.Call
- func (mr *MockSubscriptionMockRecorder) ID() *gomock.Call
- func (mr *MockSubscriptionMockRecorder) Response() *gomock.Call
- func (mr *MockSubscriptionMockRecorder) Unsubscribe(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
MockConnection is a mock of Connection interface.
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
NewMockConnection creates a new mock instance.
func (*MockConnection) BlockByHash ¶
func (m *MockConnection) BlockByHash(ctx context.Context, hash string, full bool) (*eth.Block, error)
BlockByHash mocks base method.
func (*MockConnection) BlockByNumber ¶
func (m *MockConnection) BlockByNumber(ctx context.Context, number uint64, full bool) (*eth.Block, error)
BlockByNumber mocks base method.
func (*MockConnection) BlockNumber ¶
func (m *MockConnection) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber mocks base method.
func (*MockConnection) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnection) NewHeads ¶
func (m *MockConnection) NewHeads(ctx context.Context) (websocket.Subscription, error)
NewHeads mocks base method.
func (*MockConnection) NewPendingTransaction ¶
func (m *MockConnection) NewPendingTransaction(ctx context.Context, full ...bool) (websocket.Subscription, error)
NewPendingTransaction mocks base method.
func (*MockConnection) Request ¶
func (m *MockConnection) Request(ctx context.Context, r *jsonrpc.Request) (*jsonrpc.RawResponse, error)
Request mocks base method.
func (*MockConnection) Subscribe ¶
func (m *MockConnection) Subscribe(ctx context.Context, r *jsonrpc.Request) (websocket.Subscription, error)
Subscribe mocks base method.
func (*MockConnection) TransactionByHash ¶
func (m *MockConnection) TransactionByHash(ctx context.Context, hash string) (*eth.Transaction, error)
TransactionByHash mocks base method.
func (*MockConnection) TransactionReceipt ¶
func (m *MockConnection) TransactionReceipt(ctx context.Context, hash string) (*eth.TransactionReceipt, error)
TransactionReceipt mocks base method.
type MockConnectionMockRecorder ¶
type MockConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionMockRecorder is the mock recorder for MockConnection.
func (*MockConnectionMockRecorder) BlockByHash ¶
func (mr *MockConnectionMockRecorder) BlockByHash(ctx, hash, full interface{}) *gomock.Call
BlockByHash indicates an expected call of BlockByHash.
func (*MockConnectionMockRecorder) BlockByNumber ¶
func (mr *MockConnectionMockRecorder) BlockByNumber(ctx, number, full interface{}) *gomock.Call
BlockByNumber indicates an expected call of BlockByNumber.
func (*MockConnectionMockRecorder) BlockNumber ¶
func (mr *MockConnectionMockRecorder) BlockNumber(ctx interface{}) *gomock.Call
BlockNumber indicates an expected call of BlockNumber.
func (*MockConnectionMockRecorder) GetLogs ¶
func (mr *MockConnectionMockRecorder) GetLogs(ctx, filter interface{}) *gomock.Call
GetLogs indicates an expected call of GetLogs.
func (*MockConnectionMockRecorder) NewHeads ¶
func (mr *MockConnectionMockRecorder) NewHeads(ctx interface{}) *gomock.Call
NewHeads indicates an expected call of NewHeads.
func (*MockConnectionMockRecorder) NewPendingTransaction ¶
func (mr *MockConnectionMockRecorder) NewPendingTransaction(ctx interface{}, full ...interface{}) *gomock.Call
NewPendingTransaction indicates an expected call of NewPendingTransaction.
func (*MockConnectionMockRecorder) Request ¶
func (mr *MockConnectionMockRecorder) Request(ctx, r interface{}) *gomock.Call
Request indicates an expected call of Request.
func (*MockConnectionMockRecorder) Subscribe ¶
func (mr *MockConnectionMockRecorder) Subscribe(ctx, r interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MockConnectionMockRecorder) TransactionByHash ¶
func (mr *MockConnectionMockRecorder) TransactionByHash(ctx, hash interface{}) *gomock.Call
TransactionByHash indicates an expected call of TransactionByHash.
func (*MockConnectionMockRecorder) TransactionReceipt ¶
func (mr *MockConnectionMockRecorder) TransactionReceipt(ctx, hash interface{}) *gomock.Call
TransactionReceipt indicates an expected call of TransactionReceipt.
func (*MockConnectionMockRecorder) URL ¶
func (mr *MockConnectionMockRecorder) URL() *gomock.Call
URL indicates an expected call of URL.
type MockSubscription ¶
type MockSubscription struct {
// contains filtered or unexported fields
}
MockSubscription is a mock of Subscription interface.
func NewMockSubscription ¶
func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription
NewMockSubscription creates a new mock instance.
func (*MockSubscription) Ch ¶
func (m *MockSubscription) Ch() chan *jsonrpc.Notification
Ch mocks base method.
func (*MockSubscription) Done ¶
func (m *MockSubscription) Done() <-chan struct{}
Done mocks base method.
func (*MockSubscription) EXPECT ¶
func (m *MockSubscription) EXPECT() *MockSubscriptionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscription) Response ¶
func (m *MockSubscription) Response() *jsonrpc.RawResponse
Response mocks base method.
func (*MockSubscription) Unsubscribe ¶
func (m *MockSubscription) Unsubscribe(ctx context.Context) error
Unsubscribe mocks base method.
type MockSubscriptionMockRecorder ¶
type MockSubscriptionMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriptionMockRecorder is the mock recorder for MockSubscription.
func (*MockSubscriptionMockRecorder) Ch ¶
func (mr *MockSubscriptionMockRecorder) Ch() *gomock.Call
Ch indicates an expected call of Ch.
func (*MockSubscriptionMockRecorder) Done ¶
func (mr *MockSubscriptionMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockSubscriptionMockRecorder) Err ¶
func (mr *MockSubscriptionMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockSubscriptionMockRecorder) ID ¶
func (mr *MockSubscriptionMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockSubscriptionMockRecorder) Response ¶
func (mr *MockSubscriptionMockRecorder) Response() *gomock.Call
Response indicates an expected call of Response.
func (*MockSubscriptionMockRecorder) Unsubscribe ¶
func (mr *MockSubscriptionMockRecorder) Unsubscribe(ctx interface{}) *gomock.Call
Unsubscribe indicates an expected call of Unsubscribe.