server

package
v0.0.0-...-27f6abc Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LocalIP string
)

Functions

func RunServer

func RunServer() error

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"`
}

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"`
}

Jump to

Keyboard shortcuts

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