Documentation ¶
Index ¶
- type Callbacks
- type Plugin
- func (_m *Plugin) AddPeer(ctx context.Context, peerID string, endpoint fftypes.JSONObject) error
- func (_m *Plugin) Capabilities() *dataexchange.Capabilities
- func (_m *Plugin) CheckBLOBReceived(ctx context.Context, peerID string, ns string, id fftypes.UUID) (*fftypes.Bytes32, error)
- func (_m *Plugin) DownloadBLOB(ctx context.Context, payloadRef string) (io.ReadCloser, error)
- func (_m *Plugin) GetEndpointInfo(ctx context.Context) (string, fftypes.JSONObject, error)
- func (_m *Plugin) Init(ctx context.Context, prefix config.Prefix, callbacks dataexchange.Callbacks) error
- func (_m *Plugin) InitPrefix(prefix config.Prefix)
- func (_m *Plugin) Name() string
- func (_m *Plugin) SendMessage(ctx context.Context, peerID string, data []byte) (string, error)
- func (_m *Plugin) Start() error
- func (_m *Plugin) TransferBLOB(ctx context.Context, peerID string, payloadRef string) (string, error)
- func (_m *Plugin) UploadBLOB(ctx context.Context, ns string, id fftypes.UUID, content io.Reader) (string, *fftypes.Bytes32, 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 (*Callbacks) BLOBReceived ¶
BLOBReceived provides a mock function with given fields: peerID, hash, payloadRef
func (*Callbacks) MessageReceived ¶
MessageReceived provides a mock function with given fields: peerID, data
func (*Callbacks) TransferResult ¶
func (_m *Callbacks) TransferResult(trackingID string, status fftypes.OpStatus, info string, opOutput fftypes.JSONObject) error
TransferResult provides a mock function with given fields: trackingID, status, info, opOutput
type Plugin ¶
Plugin is an autogenerated mock type for the Plugin type
func (*Plugin) Capabilities ¶
func (_m *Plugin) Capabilities() *dataexchange.Capabilities
Capabilities provides a mock function with given fields:
func (*Plugin) CheckBLOBReceived ¶
func (_m *Plugin) CheckBLOBReceived(ctx context.Context, peerID string, ns string, id fftypes.UUID) (*fftypes.Bytes32, error)
CheckBLOBReceived provides a mock function with given fields: ctx, peerID, ns, id
func (*Plugin) DownloadBLOB ¶
DownloadBLOB provides a mock function with given fields: ctx, payloadRef
func (*Plugin) GetEndpointInfo ¶
GetEndpointInfo provides a mock function with given fields: ctx
func (*Plugin) Init ¶
func (_m *Plugin) Init(ctx context.Context, prefix config.Prefix, callbacks dataexchange.Callbacks) error
Init provides a mock function with given fields: ctx, prefix, callbacks
func (*Plugin) InitPrefix ¶
InitPrefix provides a mock function with given fields: prefix
func (*Plugin) SendMessage ¶
SendMessage provides a mock function with given fields: ctx, peerID, data