ffdx

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"

	DataExchangeEventRetryInitialDelay = "eventRetry.initialDelay"
	DataExchangeEventRetryMaxDelay     = "eventRetry.maxDelay"
	DataExchangeEventRetryFactor       = "eventRetry.factor"

	DataExchangeBackgroundStart             = "backgroundStart.enabled"
	DataExchangeBackgroundStartInitialDelay = "backgroundStart.initialDelay"
	DataExchangeBackgroundStartMaxDelay     = "backgroundStart.maxDelay"
	DataExchangeBackgroundStartFactor       = "backgroundStart.factor"
)
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

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) CheckNodeIdentityStatus

func (h *FFDX) CheckNodeIdentityStatus(ctx context.Context, node *core.Identity) error

func (*FFDX) DeleteBlob

func (h *FFDX) DeleteBlob(ctx context.Context, payloadRef string) (err error)

func (*FFDX) DownloadBlob

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

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

func (*FFDX) Init

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

func (*FFDX) InitConfig

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

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

func (*FFDX) SetOperationHandler

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

func (*FFDX) Start

func (h *FFDX) Start() error

func (*FFDX) TransferBlob

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

func (*FFDX) UploadBlob

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