Documentation ¶
Index ¶
- type Callbacks
- type DXEvent
- func (_m *DXEvent) Ack()
- func (_m *DXEvent) AckWithManifest(manifest string)
- func (_m *DXEvent) EventID() string
- func (_m *DXEvent) MessageReceived() *dataexchange.MessageReceived
- func (_m *DXEvent) PrivateBlobReceived() *dataexchange.PrivateBlobReceived
- func (_m *DXEvent) Type() dataexchange.DXEventType
- type Plugin
- func (_m *Plugin) AddNode(ctx context.Context, networkNamespace string, nodeName string, ...) error
- func (_m *Plugin) Capabilities() *dataexchange.Capabilities
- func (_m *Plugin) DeleteBlob(ctx context.Context, payloadRef string) error
- func (_m *Plugin) DownloadBlob(ctx context.Context, payloadRef string) (io.ReadCloser, error)
- func (_m *Plugin) GetEndpointInfo(ctx context.Context, nodeName string) (fftypes.JSONObject, error)
- func (_m *Plugin) GetPeerID(peer fftypes.JSONObject) string
- func (_m *Plugin) Init(ctx context.Context, cancelCtx context.CancelFunc, _a2 config.Section) error
- func (_m *Plugin) InitConfig(_a0 config.Section)
- func (_m *Plugin) Name() string
- func (_m *Plugin) SendMessage(ctx context.Context, nsOpID string, peer fftypes.JSONObject, ...) error
- func (_m *Plugin) SetHandler(networkNamespace string, nodeName string, handler dataexchange.Callbacks)
- func (_m *Plugin) SetOperationHandler(namespace string, handler core.OperationCallbacks)
- func (_m *Plugin) Start() error
- func (_m *Plugin) TransferBlob(ctx context.Context, nsOpID string, peer fftypes.JSONObject, ...) error
- func (_m *Plugin) UploadBlob(ctx context.Context, ns string, id fftypes.UUID, content io.Reader) (string, *fftypes.Bytes32, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callbacks ¶
Callbacks is an autogenerated mock type for the Callbacks type
func NewCallbacks ¶ added in v1.1.2
NewCallbacks creates a new instance of Callbacks. 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 (*Callbacks) DXEvent ¶ added in v1.0.0
func (_m *Callbacks) DXEvent(plugin dataexchange.Plugin, event dataexchange.DXEvent) error
DXEvent provides a mock function with given fields: plugin, event
type DXEvent ¶ added in v1.0.0
DXEvent is an autogenerated mock type for the DXEvent type
func NewDXEvent ¶ added in v1.1.2
NewDXEvent creates a new instance of DXEvent. 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 (*DXEvent) Ack ¶ added in v1.0.0
func (_m *DXEvent) Ack()
Ack provides a mock function with given fields:
func (*DXEvent) AckWithManifest ¶ added in v1.0.0
AckWithManifest provides a mock function with given fields: manifest
func (*DXEvent) MessageReceived ¶ added in v1.0.0
func (_m *DXEvent) MessageReceived() *dataexchange.MessageReceived
MessageReceived provides a mock function with given fields:
func (*DXEvent) PrivateBlobReceived ¶ added in v1.0.0
func (_m *DXEvent) PrivateBlobReceived() *dataexchange.PrivateBlobReceived
PrivateBlobReceived provides a mock function with given fields:
func (*DXEvent) Type ¶ added in v1.0.0
func (_m *DXEvent) Type() dataexchange.DXEventType
Type provides a mock function with given fields:
type Plugin ¶
Plugin is an autogenerated mock type for the Plugin type
func NewPlugin ¶ added in v1.1.2
NewPlugin creates a new instance of Plugin. 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 (*Plugin) AddNode ¶ added in v1.1.0
func (_m *Plugin) AddNode(ctx context.Context, networkNamespace string, nodeName string, peer fftypes.JSONObject) error
AddNode provides a mock function with given fields: ctx, networkNamespace, nodeName, peer
func (*Plugin) Capabilities ¶
func (_m *Plugin) Capabilities() *dataexchange.Capabilities
Capabilities provides a mock function with given fields:
func (*Plugin) DeleteBlob ¶ added in v1.2.0
DeleteBlob provides a mock function with given fields: ctx, payloadRef
func (*Plugin) DownloadBlob ¶ added in v1.0.0
DownloadBlob provides a mock function with given fields: ctx, payloadRef
func (*Plugin) GetEndpointInfo ¶
GetEndpointInfo provides a mock function with given fields: ctx, nodeName
func (*Plugin) GetPeerID ¶ added in v1.1.0
func (_m *Plugin) GetPeerID(peer fftypes.JSONObject) string
GetPeerID provides a mock function with given fields: peer
func (*Plugin) InitConfig ¶ added in v1.1.0
InitConfig provides a mock function with given fields: _a0
func (*Plugin) SendMessage ¶
func (_m *Plugin) SendMessage(ctx context.Context, nsOpID string, peer fftypes.JSONObject, sender fftypes.JSONObject, data []byte) error
SendMessage provides a mock function with given fields: ctx, nsOpID, peer, sender, data
func (*Plugin) SetHandler ¶ added in v1.1.0
func (_m *Plugin) SetHandler(networkNamespace string, nodeName string, handler dataexchange.Callbacks)
SetHandler provides a mock function with given fields: networkNamespace, nodeName, handler
func (*Plugin) SetOperationHandler ¶ added in v1.1.0
func (_m *Plugin) SetOperationHandler(namespace string, handler core.OperationCallbacks)
SetOperationHandler provides a mock function with given fields: namespace, handler
func (*Plugin) TransferBlob ¶ added in v1.0.0
func (_m *Plugin) TransferBlob(ctx context.Context, nsOpID string, peer fftypes.JSONObject, sender fftypes.JSONObject, payloadRef string) error
TransferBlob provides a mock function with given fields: ctx, nsOpID, peer, sender, payloadRef