Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TracerResult ¶
type TracerResult struct {
NameLookup time.Duration `json:"name_lookup" xml:"name_lookup"`
Connect time.Duration `json:"connect" xml:"connect"`
TLSHandshake time.Duration `json:"tls_handshake" xml:"tls_handshake"`
FirstByte time.Duration `json:"first_byte" xml:"first_byte"`
FullResponse time.Duration `json:"full_response" xml:"full_response"`
BodySize int `json:"body_size" xml:"body_size"`
}
func Trace ¶
func Trace(url, method string) (*TracerResult, error)
func Tracer ¶
func Tracer(url, method string) (*TracerResult, error)
func (*TracerResult) ToJSON ¶
func (d *TracerResult) ToJSON() ([]byte, error)
func (*TracerResult) ToXML ¶
func (d *TracerResult) ToXML() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.