Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultConnectionTimeout = 30 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RaceDial ¶
type RaceDial struct {
// contains filtered or unexported fields
}
func NewRaceDial ¶
func (*RaceDial) WithServerName ¶ added in v0.70.5
WithServerName sets a TLS SNI/cert validation override. Used when serverURL contains an IP literal but the cert is issued for a different hostname.
Mutates the receiver and is not safe for concurrent reconfiguration; a RaceDial is intended to be constructed per dial and discarded.
Click to show internal directories.
Click to hide internal directories.