traceroute

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Latency

type Latency struct {
	Ms    float64
	Error string `json:",omitempty"`
}

func (Latency) String

func (l Latency) String() string

type TraceRouteLine

type TraceRouteLine struct {
	Hop     int
	Name    string
	IP      string
	ASN     int
	Latency []Latency
	Err     error `json:",omitempty"`
}

func (*TraceRouteLine) Bytes

func (tr *TraceRouteLine) Bytes() []byte

func (*TraceRouteLine) Error

func (tr *TraceRouteLine) Error() error

func (*TraceRouteLine) JSON

func (tr *TraceRouteLine) JSON() []byte

func (*TraceRouteLine) String

func (tr *TraceRouteLine) String() string

func (*TraceRouteLine) UpdateASN

func (tr *TraceRouteLine) UpdateASN() error

func (*TraceRouteLine) UpdateName

func (tr *TraceRouteLine) UpdateName() error

type Traceroute added in v0.0.4

type Traceroute struct {
	// contains filtered or unexported fields
}

func New added in v0.0.4

func New(ip netip.Addr) (*Traceroute, error)

func (*Traceroute) Read added in v0.0.4

func (tr *Traceroute) Read() (*TraceRouteLine, error)

func (*Traceroute) ReadAll added in v0.0.4

func (tr *Traceroute) ReadAll() ([]*TraceRouteLine, error)

func (*Traceroute) Start added in v0.0.4

func (tr *Traceroute) Start(ctx context.Context) error

type TracerouteParser

type TracerouteParser struct {
	// contains filtered or unexported fields
}

func NewTracerouteParser

func NewTracerouteParser() *TracerouteParser

func (*TracerouteParser) Add

func (trp *TracerouteParser) Add(line string)

func (*TracerouteParser) Close

func (trp *TracerouteParser) Close()

func (*TracerouteParser) Read

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL