Documentation ¶
Index ¶
- func MtrString(addr string, srcAddr string, maxHops int, count int, timeout time.Duration, ...) (result string, err error)
- type MtrOptions
- func (options *MtrOptions) Count() int
- func (options *MtrOptions) MaxHops() int
- func (options *MtrOptions) PacketSize() int
- func (options *MtrOptions) SetCount(count int)
- func (options *MtrOptions) SetMaxHops(maxHops int)
- func (options *MtrOptions) SetPacketSize(packetSize int)
- func (options *MtrOptions) SetTimeout(timeout time.Duration)
- func (options *MtrOptions) Timeout() time.Duration
- type MtrResult
- type MtrReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MtrOptions ¶
type MtrOptions struct {
// contains filtered or unexported fields
}
MtrOptions MTR Options
func (*MtrOptions) SetMaxHops ¶
func (options *MtrOptions) SetMaxHops(maxHops int)
SetMaxHops Setter
func (*MtrOptions) SetPacketSize ¶
func (options *MtrOptions) SetPacketSize(packetSize int)
SetPacketSize Setter
func (*MtrOptions) SetTimeout ¶
func (options *MtrOptions) SetTimeout(timeout time.Duration)
SetTimeout Setter
type MtrResult ¶
type MtrResult struct { DestAddr string `json:"dest_address"` Hops []common.IcmpHop `json:"hops"` HopSummaryMap map[string]*common.IcmpSummary `json:"hop_summary_map"` }
MtrResult Calculated results
type MtrReturn ¶
type MtrReturn struct {
// contains filtered or unexported fields
}
MtrReturn MTR Response TODO: Add Jitter RFC 1889 (http://www.ietf.org/rfc/rfc1889.txt) is the RFC for RTP, later superseded by RFC 3550. How interarrival jitter is calculated RFC 3550 (http://www.ietf.org/rfc/rfc3550.txt)
Click to show internal directories.
Click to hide internal directories.