Documentation
¶
Index ¶
- type HttpInfo
- func HttpPing(req *http.Request, ping bool, srcAddr string) (*HttpInfo, error)
- func HttpPingGet(url string, ping bool, srcAddr string) (*HttpInfo, error)
- func HttpPingServerInfo(req *http.Request, ping bool, srcAddr string, serverSupport bool) (*HttpInfo, error)
- func HttpPingSimple(url string) (*HttpInfo, error)
- type TcpWrapper
- func (t *TcpWrapper) Close() error
- func (t *TcpWrapper) Dial(_ context.Context, _, _ string) (net.Conn, error)
- func (t *TcpWrapper) DialTLS(ctx context.Context, _, _ string) (net.Conn, 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 HttpInfo ¶
type HttpInfo 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 Loss float32 }
func HttpPingServerInfo ¶ added in v0.1.1
func HttpPingSimple ¶
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.