Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_HOPS int = 64 DEFAULT_TIMEOUT_SECONDS int = 5 DEFAULT_MAX_RETRIES int = 2 )
View Source
const (
UDPStartPort = 33434
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hop ¶
type NetworkTrace ¶
type Tracer ¶
type Tracer struct {
Config *TracerConfig
}
func NewTracer ¶
func NewTracer(c *TracerConfig) *Tracer
type TracerConfig ¶
func NewConfig ¶
func NewConfig() *TracerConfig
func (*TracerConfig) Hops ¶
func (t *TracerConfig) Hops() int
func (*TracerConfig) Retries ¶
func (t *TracerConfig) Retries() int
func (*TracerConfig) Timeout ¶
func (t *TracerConfig) Timeout() int
func (*TracerConfig) WithHops ¶
func (t *TracerConfig) WithHops(h int) *TracerConfig
func (*TracerConfig) WithMaxRetries ¶
func (t *TracerConfig) WithMaxRetries(n int) *TracerConfig
func (*TracerConfig) WithTimeout ¶
func (t *TracerConfig) WithTimeout(to int) *TracerConfig
Click to show internal directories.
Click to hide internal directories.