dataexchangemocks

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks

type Callbacks struct {
	mock.Mock
}

Callbacks is an autogenerated mock type for the Callbacks type

func (*Callbacks) DXEvent added in v1.0.0

func (_m *Callbacks) DXEvent(event dataexchange.DXEvent)

DXEvent provides a mock function with given fields: event

type DXEvent added in v1.0.0

type DXEvent struct {
	mock.Mock
}

DXEvent is an autogenerated mock type for the DXEvent type

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

func (_m *DXEvent) AckWithManifest(manifest string)

AckWithManifest provides a mock function with given fields: manifest

func (*DXEvent) ID added in v1.0.0

func (_m *DXEvent) ID() string

ID provides a mock function with given fields:

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) TransferResult added in v1.0.0

func (_m *DXEvent) TransferResult() *dataexchange.TransferResult

TransferResult 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

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func (*Plugin) AddPeer

func (_m *Plugin) AddPeer(ctx context.Context, peer fftypes.JSONObject) error

AddPeer provides a mock function with given fields: ctx, peer

func (*Plugin) Capabilities

func (_m *Plugin) Capabilities() *dataexchange.Capabilities

Capabilities provides a mock function with given fields:

func (*Plugin) CheckBlobReceived added in v1.0.0

func (_m *Plugin) CheckBlobReceived(ctx context.Context, peerID string, ns string, id fftypes.UUID) (*fftypes.Bytes32, int64, error)

CheckBlobReceived provides a mock function with given fields: ctx, peerID, ns, id

func (*Plugin) DownloadBlob added in v1.0.0

func (_m *Plugin) DownloadBlob(ctx context.Context, payloadRef string) (io.ReadCloser, error)

DownloadBlob provides a mock function with given fields: ctx, payloadRef

func (*Plugin) GetEndpointInfo

func (_m *Plugin) GetEndpointInfo(ctx context.Context) (fftypes.JSONObject, error)

GetEndpointInfo provides a mock function with given fields: ctx

func (*Plugin) Init

func (_m *Plugin) Init(ctx context.Context, prefix config.Prefix, nodes []fftypes.JSONObject, callbacks dataexchange.Callbacks) error

Init provides a mock function with given fields: ctx, prefix, nodes, callbacks

func (*Plugin) InitPrefix

func (_m *Plugin) InitPrefix(prefix config.Prefix)

InitPrefix provides a mock function with given fields: prefix

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

func (*Plugin) SendMessage

func (_m *Plugin) SendMessage(ctx context.Context, opID *fftypes.UUID, peerID string, data []byte) error

SendMessage provides a mock function with given fields: ctx, opID, peerID, data

func (*Plugin) Start

func (_m *Plugin) Start() error

Start provides a mock function with given fields:

func (*Plugin) TransferBlob added in v1.0.0

func (_m *Plugin) TransferBlob(ctx context.Context, opID *fftypes.UUID, peerID string, payloadRef string) error

TransferBlob provides a mock function with given fields: ctx, opID, peerID, payloadRef

func (*Plugin) UploadBlob added in v1.0.0

func (_m *Plugin) UploadBlob(ctx context.Context, ns string, id fftypes.UUID, content io.Reader) (string, *fftypes.Bytes32, int64, error)

UploadBlob provides a mock function with given fields: ctx, ns, id, content

Jump to

Keyboard shortcuts

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