Documentation ¶ Index ¶ Constants type Exchange func New(h host.Host, ls ipld.LinkSystem) *Exchange func (e *Exchange) Pull(ctx context.Context, from peer.ID, l ipld.Link) error func (e *Exchange) Push(ctx context.Context, to peer.ID, l ipld.Link) error func (e *Exchange) Shutdown() func (e *Exchange) Start(ctx context.Context) error Constants ¶ View Source const FxExchangeProtocolID = "/fx.land/exchange/0.0.1" Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Exchange ¶ type Exchange struct { // contains filtered or unexported fields } func New ¶ func New(h host.Host, ls ipld.LinkSystem) *Exchange func (*Exchange) Pull ¶ func (e *Exchange) Pull(ctx context.Context, from peer.ID, l ipld.Link) error func (*Exchange) Push ¶ func (e *Exchange) Push(ctx context.Context, to peer.ID, l ipld.Link) error func (*Exchange) Shutdown ¶ func (e *Exchange) Shutdown() func (*Exchange) Start ¶ func (e *Exchange) Start(ctx context.Context) error Source Files ¶ View all Source files exchange.go Click to show internal directories. Click to hide internal directories.