Documentation ¶
Index ¶
Constants ¶
View Source
const MicrosecondsFactor = 1000.0
Variables ¶
View Source
var ErrEmptyDomain = errors.New("domain must not be empty")
Functions ¶
This section is empty.
Types ¶
type DecodeLineFunc ¶
type Hop ¶
type Hop struct { Hop uint8 `json:"hop,omitempty"` // hop number along the route Domain string `json:"domain,omitempty"` // domain and/or ip of the hop, this field will be '*' if the hop is a timeout Rtts []time.Duration `json:"rtts,omitempty"` // RTT measurements in microseconds }
func DecodeLine ¶
func NewTimeoutHop ¶
type NetworkCollector ¶
type NetworkCollector interface { // Performs a trace route operation with the specified options. // In case the trace fails, it will return a non-nil error and // it may return a string which represents the raw information // obtained. // In case it is successful it will only return an array of Hops // an empty string and a nil error. Collect(ctx context.Context, options TraceOptions) ([]*Hop, string, error) }
type NetworkCollectorImpl ¶
type NetworkCollectorImpl struct{}
func (*NetworkCollectorImpl) Collect ¶
func (tracer *NetworkCollectorImpl) Collect(ctx context.Context, options TraceOptions) ([]*Hop, string, error)
type TraceOptions ¶
type TraceOptions struct {
// contains filtered or unexported fields
}
func NewTraceOptions ¶
Click to show internal directories.
Click to hide internal directories.