Documentation
¶
Index ¶
- type Backend
- func (_m *Backend) CallRPC(ctx context.Context, result interface{}, method string, params ...interface{}) *rpcbackend.RPCError
- func (_m *Backend) CallRPCBatch(ctx context.Context, ops ...*rpcbackend.RPCBatchOp) []*rpcbackend.RPCError
- func (_m *Backend) SyncRequest(ctx context.Context, rpcReq *rpcbackend.RPCRequest) (*rpcbackend.RPCResponseTyped[*fftypes.JSONAny], error)
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend is an autogenerated mock type for the Backend type
func NewBackend ¶
NewBackend creates a new instance of Backend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Backend) CallRPC ¶
func (_m *Backend) CallRPC(ctx context.Context, result interface{}, method string, params ...interface{}) *rpcbackend.RPCError
CallRPC provides a mock function with given fields: ctx, result, method, params
func (*Backend) CallRPCBatch ¶
func (_m *Backend) CallRPCBatch(ctx context.Context, ops ...*rpcbackend.RPCBatchOp) []*rpcbackend.RPCError
CallRPCBatch provides a mock function with given fields: ctx, ops
func (*Backend) SyncRequest ¶
func (_m *Backend) SyncRequest(ctx context.Context, rpcReq *rpcbackend.RPCRequest) (*rpcbackend.RPCResponseTyped[*fftypes.JSONAny], error)
SyncRequest provides a mock function with given fields: ctx, rpcReq
type Subscription ¶
Subscription is an autogenerated mock type for the Subscription type
func NewSubscription ¶
func NewSubscription(t interface {
mock.TestingT
Cleanup(func())
}) *Subscription
NewSubscription creates a new instance of Subscription. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Subscription) LocalID ¶
func (_m *Subscription) LocalID() *fftypes.UUID
LocalID provides a mock function with no fields
func (*Subscription) Notifications ¶
func (_m *Subscription) Notifications() chan *rpcbackend.RPCSubscriptionNotification
Notifications provides a mock function with no fields
func (*Subscription) Unsubscribe ¶
func (_m *Subscription) Unsubscribe(ctx context.Context) *rpcbackend.RPCError
Unsubscribe provides a mock function with given fields: ctx