Documentation
¶
Index ¶
- Constants
- func Error(errCh chan error, err error)
- func GetOutbondIP() string
- func IsIpv4(ip string) bool
- type Config
- type ConstructPacket
- type Constructor
- type DeConstructor
- type Detector
- type ICMPRcv
- type Receiver
- type SendProbe
- type Trace
- type TraceDebugInfo
- type TraceRes
- type TraceResult
- type Tracer
Constants ¶
View Source
const ( ICMPEcho = "ICMPEcho" ICMPTimeExceed = "ICMPTimeExceed" ICMPUnreachable = "ICMPUnreachable" )
Variables ¶
This section is empty.
Functions ¶
func GetOutbondIP ¶
func GetOutbondIP() string
GetOutbondIP return default local ip which used to route packages outbond
Types ¶
type ConstructPacket ¶
type Constructor ¶
type Constructor interface {
Packet(req ConstructPacket) ([]byte, error)
}
type DeConstructor ¶
type Trace ¶
type Trace struct { IsIpv4 bool `json:"-"` SrcAddr string `json:"src_addr"` DstAddr string `json:"dst_addr"` SrcSockAddr unix.Sockaddr `json:"-"` DstSockAddr unix.Sockaddr `json:"-"` SrcPort uint16 `json:"src_port"` DstPort uint16 `json:"dst_port"` MaxTTL uint8 `json:"max_ttl"` Retry int `json:"retry"` }
type TraceDebugInfo ¶
type TraceResult ¶
type TraceResult struct { Trace Id uint16 `json:"id"` Key string `json:"key"` StartAt time.Time `json:"start_at"` Done bool `json:"done"` AvgPktLoss float32 `json:"avg_pkt_loss"` Res []TraceRes `json:"res"` // contains filtered or unexported fields }
func (TraceResult) Aggregate ¶
func (t TraceResult) Aggregate() TraceResult
func (TraceResult) JsonString ¶ added in v0.0.2
func (t TraceResult) JsonString() string
func (TraceResult) JsonStringAggregate ¶ added in v0.0.2
func (t TraceResult) JsonStringAggregate() string
func (TraceResult) Marshal ¶
func (t TraceResult) Marshal() string
func (TraceResult) MarshalAggregate ¶
func (t TraceResult) MarshalAggregate() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.