Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PingDto ¶
PingDto is for endpoint and reponse time information
func (*PingDto) Ping ¶
func (p *PingDto) Ping()
Ping Send HTTP(S) request to endpoint and report its response time
func (*PingDto) VerbosePing ¶
func (p *PingDto) VerbosePing()
VerbosePing send HTTP(S) request to endpoint and report its respons time in httpstat style
type TimeTrace ¶
type TimeTrace struct { DNSLookup time.Duration TCPConnect time.Duration TLSHandshake time.Duration ServerProcess time.Duration ContentTransfer time.Duration NameLookup time.Duration ConnectTotal time.Duration PreTransfer time.Duration StartTransfer time.Duration TotalTime time.Duration }
TimeTrace will be used for report httpstat
func (*TimeTrace) PrintHttpTrace ¶
func (t *TimeTrace) PrintHttpTrace()
PrintHttpTrace prints TimeTrace struct in httpstat style This function's codes are from https://github.com/reoim/httpstat-1 They are slightly different from the original codes. But I used the same template and print format.
Click to show internal directories.
Click to hide internal directories.