dataexchangemocks

package
v0.0.0-...-93e01a0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 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) BLOBReceived

func (_m *Callbacks) BLOBReceived(peerID string, hash fftypes.Bytes32, payloadRef string) error

BLOBReceived provides a mock function with given fields: peerID, hash, payloadRef

func (*Callbacks) MessageReceived

func (_m *Callbacks) MessageReceived(peerID string, data []byte) error

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

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, peerID string, endpoint fftypes.JSONObject) error

AddPeer provides a mock function with given fields: ctx, peerID, endpoint

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

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) (string, 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, callbacks dataexchange.Callbacks) error

Init provides a mock function with given fields: ctx, prefix, 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, peerID string, data []byte) (string, error)

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

func (*Plugin) Start

func (_m *Plugin) Start() error

Start provides a mock function with given fields:

func (*Plugin) TransferBLOB

func (_m *Plugin) TransferBLOB(ctx context.Context, peerID string, payloadRef string) (string, error)

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

func (*Plugin) UploadBLOB

func (_m *Plugin) UploadBLOB(ctx context.Context, ns string, id fftypes.UUID, content io.Reader) (string, *fftypes.Bytes32, 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