Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AcceptQueueLength = 16
AcceptQueueLength is the number of connections to fully setup before not accepting any new connections
View Source
var ErrNilPeer = errors.New("nil peer")
ErrNilPeer is returned when attempting to upgrade an outbound connection without specifying a peer ID.
Functions ¶
func New ¶
func New(secureMuxer sec.SecureMuxer, muxer network.Multiplexer, opts ...Option) (transport.Upgrader, error)
Types ¶
type Option ¶
type Option func(*upgrader) error
func WithAcceptTimeout ¶
func WithConnectionGater ¶
func WithConnectionGater(g connmgr.ConnectionGater) Option
func WithResourceManager ¶
func WithResourceManager(m network.ResourceManager) Option
Click to show internal directories.
Click to hide internal directories.