dxhttps

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPS

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

func (*HTTPS) AddPeer

func (h *HTTPS) AddPeer(ctx context.Context, peerID string, endpoint fftypes.JSONObject) (err error)

func (*HTTPS) Capabilities

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

func (*HTTPS) CheckBLOBReceived

func (h *HTTPS) CheckBLOBReceived(ctx context.Context, peerID, ns string, id fftypes.UUID) (hash *fftypes.Bytes32, err error)

func (*HTTPS) DownloadBLOB

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

func (*HTTPS) GetEndpointInfo

func (h *HTTPS) GetEndpointInfo(ctx context.Context) (peerID string, endpoint fftypes.JSONObject, err error)

func (*HTTPS) Init

func (h *HTTPS) Init(ctx context.Context, prefix config.Prefix, callbacks dataexchange.Callbacks) (err error)

func (*HTTPS) InitPrefix

func (h *HTTPS) InitPrefix(prefix config.Prefix)

func (*HTTPS) Name

func (h *HTTPS) Name() string

func (*HTTPS) SendMessage

func (h *HTTPS) SendMessage(ctx context.Context, peerID string, data []byte) (trackingID string, err error)

func (*HTTPS) Start

func (h *HTTPS) Start() error

func (*HTTPS) TransferBLOB

func (h *HTTPS) TransferBLOB(ctx context.Context, peerID, payloadRef string) (trackingID string, err error)

func (*HTTPS) UploadBLOB

func (h *HTTPS) UploadBLOB(ctx context.Context, ns string, id fftypes.UUID, content io.Reader) (payloadRef string, hash *fftypes.Bytes32, err error)

Jump to

Keyboard shortcuts

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