Documentation ¶
Index ¶
- Constants
- type Exchange
- type FxExchange
- func (e *FxExchange) GetAuth(ctx context.Context) (peer.ID, error)
- func (e *FxExchange) Pull(ctx context.Context, from peer.ID, l ipld.Link) error
- func (e *FxExchange) Push(ctx context.Context, to peer.ID, l ipld.Link) error
- func (e *FxExchange) SetAuth(ctx context.Context, on peer.ID, subject peer.ID, allow bool) error
- func (e *FxExchange) Shutdown(ctx context.Context) error
- func (e *FxExchange) Start(ctx context.Context) error
- type NoopExchange
- func (n NoopExchange) Pull(_ context.Context, from peer.ID, l ipld.Link) error
- func (n NoopExchange) Push(_ context.Context, to peer.ID, l ipld.Link) error
- func (n NoopExchange) SetAuth(_ context.Context, on peer.ID, subject peer.ID, allow bool) error
- func (n NoopExchange) Shutdown(context.Context) error
- func (n NoopExchange) Start(context.Context) error
- type Option
- func WithAllowTransientConnection(t bool) Option
- func WithAuthorizer(a peer.ID) Option
- func WithIpniProviderEngineOptions(e ...engine.Option) Option
- func WithIpniPublishChanBuffer(s int) Option
- func WithIpniPublishDisabled(d bool) Option
- func WithIpniPublishInterval(t time.Duration) Option
- func WithIpniPublishMaxBatchSize(s int) Option
Constants ¶
View Source
const (
FxExchangeProtocolID = "/fx.land/exchange/0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FxExchange ¶ added in v0.5.4
type FxExchange struct {
// contains filtered or unexported fields
}
func NewFxExchange ¶ added in v0.5.4
func NewFxExchange(h host.Host, ls ipld.LinkSystem, o ...Option) (*FxExchange, error)
type NoopExchange ¶ added in v0.5.4
type NoopExchange struct{}
type Option ¶ added in v0.8.3
type Option func(*options) error
func WithAllowTransientConnection ¶ added in v0.8.4
func WithAuthorizer ¶ added in v0.8.3
WithAuthorizer sets the peer ID that has permission to configure DAG exchange authorization. Defaults to authorization disabled.
func WithIpniProviderEngineOptions ¶ added in v1.0.0
func WithIpniPublishChanBuffer ¶ added in v1.0.0
func WithIpniPublishDisabled ¶ added in v1.0.0
func WithIpniPublishInterval ¶ added in v1.0.0
func WithIpniPublishMaxBatchSize ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.