Documentation ¶
Index ¶
- Constants
- type FFDX
- func (h *FFDX) AddNode(ctx context.Context, networkNamespace, nodeName string, ...) (err error)
- func (h *FFDX) Capabilities() *dataexchange.Capabilities
- func (h *FFDX) DeleteBlob(ctx context.Context, payloadRef string) (err error)
- func (h *FFDX) DownloadBlob(ctx context.Context, payloadRef string) (content io.ReadCloser, err error)
- func (h *FFDX) GetEndpointInfo(ctx context.Context, nodeName string) (peer fftypes.JSONObject, err error)
- func (h *FFDX) GetPeerID(peer fftypes.JSONObject) string
- func (h *FFDX) Init(ctx context.Context, cancelCtx context.CancelFunc, config config.Section) (err error)
- func (h *FFDX) InitConfig(config config.Section)
- func (h *FFDX) Name() string
- func (h *FFDX) SendMessage(ctx context.Context, nsOpID string, peer, sender fftypes.JSONObject, ...) (err error)
- func (h *FFDX) SetHandler(networkNamespace, nodeName string, handler dataexchange.Callbacks)
- func (h *FFDX) SetOperationHandler(namespace string, handler core.OperationCallbacks)
- func (h *FFDX) Start() error
- func (h *FFDX) TransferBlob(ctx context.Context, nsOpID string, peer, sender fftypes.JSONObject, ...) (err error)
- func (h *FFDX) UploadBlob(ctx context.Context, ns string, id fftypes.UUID, content io.Reader) (payloadRef string, hash *fftypes.Bytes32, size int64, err error)
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) Capabilities ¶
func (h *FFDX) Capabilities() *dataexchange.Capabilities
func (*FFDX) DeleteBlob ¶ added in v1.2.0
func (*FFDX) DownloadBlob ¶ added in v1.0.0
func (*FFDX) GetEndpointInfo ¶
func (*FFDX) InitConfig ¶ added in v1.1.0
func (*FFDX) SendMessage ¶
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) TransferBlob ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.