exchange

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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