ffdx

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DataExchangeManifestEnabled determines whether to require+validate a manifest from other DX instances in the network. Must be supported by the connector
	DataExchangeManifestEnabled = "manifestEnabled"
	// DataExchangeInitEnabled instructs FireFly to always post all current nodes to the /init API before connecting or reconnecting to the connector
	DataExchangeInitEnabled = "initEnabled"
)
View Source
const DXIDSeparator = "/"

Variables

This section is empty.

Functions

This section is empty.

Types

type FFDX

type FFDX struct {
	// contains filtered or unexported fields
}

func (*FFDX) AddNode added in v1.1.0

func (h *FFDX) AddNode(ctx context.Context, networkNamespace, nodeName string, peer fftypes.JSONObject) (err error)

func (*FFDX) Capabilities

func (h *FFDX) Capabilities() *dataexchange.Capabilities

func (*FFDX) DownloadBlob added in v1.0.0

func (h *FFDX) DownloadBlob(ctx context.Context, payloadRef string) (content io.ReadCloser, err error)

func (*FFDX) GetEndpointInfo

func (h *FFDX) GetEndpointInfo(ctx context.Context, nodeName string) (peer fftypes.JSONObject, err error)

func (*FFDX) GetPeerID added in v1.1.0

func (h *FFDX) GetPeerID(peer fftypes.JSONObject) string

func (*FFDX) Init

func (h *FFDX) Init(ctx context.Context, cancelCtx context.CancelFunc, config config.Section) (err error)

func (*FFDX) InitConfig added in v1.1.0

func (h *FFDX) InitConfig(config config.Section)

func (*FFDX) Name

func (h *FFDX) Name() string

func (*FFDX) SendMessage

func (h *FFDX) SendMessage(ctx context.Context, nsOpID string, peer, sender fftypes.JSONObject, data []byte) (err error)

func (*FFDX) SetHandler added in v1.1.0

func (h *FFDX) SetHandler(networkNamespace, nodeName string, handler dataexchange.Callbacks)

func (*FFDX) SetOperationHandler added in v1.1.0

func (h *FFDX) SetOperationHandler(namespace string, handler core.OperationCallbacks)

func (*FFDX) Start

func (h *FFDX) Start() error

func (*FFDX) TransferBlob added in v1.0.0

func (h *FFDX) TransferBlob(ctx context.Context, nsOpID string, peer, sender fftypes.JSONObject, payloadRef string) (err error)

func (*FFDX) UploadBlob added in v1.0.0

func (h *FFDX) UploadBlob(ctx context.Context, ns string, id fftypes.UUID, content io.Reader) (payloadRef string, hash *fftypes.Bytes32, size int64, err error)

Jump to

Keyboard shortcuts

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