worker

package
v0.0.0-...-43f4082 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfraResponse

type InfraResponse struct {
	Bridgenf              string `json:"bridgenf,omitempty"`
	Bridgenf6             string `json:"bridgenf6,omitempty"`
	Ipv4Forward           string `json:"ipv4Forward,omitempty"`
	Ipv6DefaultForwarding string `json:"ipv6DefaultForwarding,omitempty"`
}

func TestInfra

func TestInfra(ip *netip.Addr, work *meta.NetestWork) (*InfraResponse, error)

type NetestWorker

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

func NewNetestWorker

func NewNetestWorker() *NetestWorker

func (*NetestWorker) Close

func (w *NetestWorker) Close(name string)

func (*NetestWorker) Work

func (w *NetestWorker) Work(ip *netip.Addr, work *meta.NetestWork)

type PingResponse

type PingResponse struct {
	Addr    string `json:"addr,omitempty"`
	PkgSent int    `json:"pkgSent,omitempty"`
	PkgRecv int    `json:"pkgRecv,omitempty"`
	AvgRtt  int    `json:"avgRtt,omitempty"`
	MaxRtt  int    `json:"maxRtt,omitempty"`
	MinRtt  int    `json:"minRtt,omitempty"`
	Rtts    []int  `json:"rtts,omitempty"`
}

func TestPing

func TestPing(ip *netip.Addr, work *meta.NetestWork) (*PingResponse, error)

Jump to

Keyboard shortcuts

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