Documentation
¶
Index ¶
Constants ¶
View Source
const ( ALPNTPUProtocolID = "solana-tpu" DefaultCommonName = "Solana node" )
View Source
const ( DefaultCount = 3 DefaultInterval = 3 * time.Second DefaultKeepAlivePeriod = 500 * time.Millisecond )
Variables ¶
View Source
var (
DefaultSrc = net.UDPAddr{IP: net.ParseIP("0.0.0.0"), Port: 0}
)
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) ConnectionStats ¶
func (c *Conn) ConnectionStats() quic.ConnectionStats
func (*Conn) RemoteAddr ¶
type DialConfig ¶
type DialConfig struct {
Interface string
Src string
MaxIdleTimeout time.Duration
HandshakeIdleTimeout time.Duration
KeepAlivePeriod time.Duration
}
func (*DialConfig) Validate ¶
func (cfg *DialConfig) Validate() error
type PingConfig ¶
func (*PingConfig) Validate ¶
func (cfg *PingConfig) Validate() error
type PingResult ¶
type PingResult struct {
ConnectionStats []quic.ConnectionStats `json:"connection_stats"`
Success bool `json:"success"`
Error error `json:"error"`
}
func Ping ¶
func Ping(ctx context.Context, log *slog.Logger, dst string, cfg PingConfig) (*PingResult, error)
Click to show internal directories.
Click to hide internal directories.