libp2pwebtransport

package
v0.0.0-...-c6f7f91 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(key ic.PrivKey, psk pnet.PSK, connManager *quicreuse.ConnManager, gater connmgr.ConnectionGater, rcmgr network.ResourceManager, opts ...Option) (tpt.Transport, error)

Types

type Option

type Option func(*transport) error

func WithClock

func WithClock(cl clock.Clock) Option

func WithTLSClientConfig

func WithTLSClientConfig(c *tls.Config) Option

WithTLSClientConfig sets a custom tls.Config used for dialing. This option is most useful for setting a custom tls.Config.RootCAs certificate pool. When dialing a multiaddr that contains a /certhash component, this library will set InsecureSkipVerify and overwrite the VerifyPeerCertificate callback.

Jump to

Keyboard shortcuts

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