Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*transport) error
func WithTLSClientConfig ¶
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.
func WithTLSConfig ¶
WithTLSConfig sets a tls.Config used for listening. When used, the certificate from that config will be used, and no /certhash will be added to the listener's multiaddr. This is most useful when running a listener that has a valid (CA-signed) certificate.
Click to show internal directories.
Click to hide internal directories.