Documentation
¶
Index ¶
- type Info
- type Pinger
- type RoundTime
- type TcpWrapper
- func (t *TcpWrapper) Close() error
- func (t *TcpWrapper) Dial(_ context.Context, network, addr string) (conn net.Conn, err error)
- func (t *TcpWrapper) DialTLS(ctx context.Context, network, addr string) (conn net.Conn, err error)
- func (t *TcpWrapper) LocalAddr() net.Addr
- func (t *TcpWrapper) Read(b []byte) (n int, err error)
- func (t *TcpWrapper) RemoteAddr() net.Addr
- func (t *TcpWrapper) SetDeadline(tm time.Time) error
- func (t *TcpWrapper) SetReadDeadline(tm time.Time) error
- func (t *TcpWrapper) SetWriteDeadline(tm time.Time) error
- func (t *TcpWrapper) TTFB() time.Duration
- func (t *TcpWrapper) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶ added in v0.2.1
type Info struct { Server network.TCPInfo Client network.TCPInfo Domain string Ip string Port int Code int Hops uint32 DnsTimeMs uint32 ConnectTimeMs uint32 TLSHandshakeTimeMs uint32 TtfbMs uint32 ReTransmitPackets uint32 Speed float32 // unit kb/s TotalSize int64 TotalTimeMs int64 Error string PingError string Hash string Loss float32 Rounds []RoundTime }
func PingSimple ¶ added in v0.2.1
type Pinger ¶ added in v0.2.1
type TcpWrapper ¶
type TcpWrapper struct {
// contains filtered or unexported fields
}
func (*TcpWrapper) Close ¶
func (t *TcpWrapper) Close() error
func (*TcpWrapper) LocalAddr ¶
func (t *TcpWrapper) LocalAddr() net.Addr
func (*TcpWrapper) RemoteAddr ¶
func (t *TcpWrapper) RemoteAddr() net.Addr
func (*TcpWrapper) SetDeadline ¶
func (t *TcpWrapper) SetDeadline(tm time.Time) error
func (*TcpWrapper) SetReadDeadline ¶
func (t *TcpWrapper) SetReadDeadline(tm time.Time) error
func (*TcpWrapper) SetWriteDeadline ¶
func (t *TcpWrapper) SetWriteDeadline(tm time.Time) error
func (*TcpWrapper) TTFB ¶
func (t *TcpWrapper) TTFB() time.Duration
Click to show internal directories.
Click to hide internal directories.