Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownCodec = errors.New("unknown codec")
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange interface { // Code is the identifier for this exchange protocol Code() multicodec.Code // RequestData based on root, selector, and routing parameters RequestData(ctx context.Context, request ipld.Link, selector ipld.Node, routingProvider interface{}, routingPayload interface{}) <-chan EventData // Close completes use of this exchange Close() }
type ExchangeMux ¶
type ExchangeMux struct {
// contains filtered or unexported fields
}
func DefaultMux ¶
func DefaultMux() *ExchangeMux
func (*ExchangeMux) Add ¶
func (e *ExchangeMux) Add(ctx context.Context, tr *planning.TransportRequest) error
func (*ExchangeMux) Register ¶
func (e *ExchangeMux) Register(ex Exchange) error
func (*ExchangeMux) Subscribe ¶
func (e *ExchangeMux) Subscribe() chan MuxEvent
type MuxEvent ¶
type MuxEvent struct { Source *planning.TransportRequest EventData }
Click to show internal directories.
Click to hide internal directories.