Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type TraceRoute ¶
type TraceRoute struct {
// contains filtered or unexported fields
}
func New ¶
func New(localIP, remoteIP string, localPort, remotePort int, data []byte, config *Config) *TraceRoute
func (*TraceRoute) Trace ¶
func (tr *TraceRoute) Trace(ctx context.Context) ([]*TracertHop, error)
type TraceRouteResult ¶
type TraceRouteResult struct { LastSuccessRouters map[string]int `json:"last_success_routers,omitempty"` // last success router ip => count of failed ip pairs FailedPair map[string][]string `json:"failed_pair,omitempty"` // last success router ip => failed ip pairs Failed int `json:"failed,omitempty"` Success int `json:"success,omitempty"` }
func MTrace ¶
func MTrace(localIP, remoteIP string, localPorts, remotePorts []int) *TraceRouteResult
Click to show internal directories.
Click to hide internal directories.