Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update Transport option documentation #3144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

D4ryl00
Copy link

@D4ryl00 D4ryl00 commented Jan 20, 2025

This PR aims to update the list of parameters available for Transport constructors, following this code: https://github.com/libp2p/go-libp2p/blob/master/config/config.go#L290-L324

Comment on lines 134 to +140
// * Transport Upgrader (*tptu.Upgrader)
// * Host
// * Stream muxer (muxer.Transport)
// * Security transport (security.Transport)
// * Connection Gater (connmgr.ConnectionGater)
// * Private network protector (pnet.Protector)
// * Peer ID
// * Private Key
// * Public Key
// * Address filter (filter.Filter)
// * Peerstore
// * Resource Manager (network.ResourceManager)
// * TCP reuse Connection Manager (tcpreuse.ConnMgr)
// * WebRTC listener (libp2pwebrtc.ListenUDPFn)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to mention that users should refer to the parameters of the transport used for all the options available because different transports have different parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants