tool

package
v0.34.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: GPL-3.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WebServerListener *netx.ChanListener

Functions

func ChartDeciles added in v0.32.7

func ChartDeciles() []map[string]interface{}

func CounterDelta added in v0.34.8

func CounterDelta(cur, prev uint64) uint64

CounterDelta returns how far a monotonically increasing counter advanced from prev to cur. A counter that went backwards was reset (for example the interface was recreated), and the interval counts as zero.

func GenerateServerPort

func GenerateServerPort(m string) int

func GenerateTunnelPort added in v0.34.8

func GenerateTunnelPort(t *file.Tunnel) int

func GetTunnelConn added in v0.33.5

func GetTunnelConn(id int, remote string) (net.Conn, error)

func GetWebServerConn added in v0.33.6

func GetWebServerConn(ctx context.Context, remote string) (net.Conn, error)

GetWebServerConn connects to the web server's in-memory listener as remote.

func InitAllowPort

func InitAllowPort()

func SetLookup added in v0.33.5

func SetLookup(fn func(int) (Dialer, bool))

func StartSystemInfo

func StartSystemInfo()

func StatusSnapshot added in v0.32.7

func StatusSnapshot() []map[string]interface{}

func TestServerPort

func TestServerPort(p int, m string) (b bool)

func TestTunnelPort added in v0.34.8

func TestTunnelPort(t *file.Tunnel) bool

Types

type Dialer added in v0.33.5

type Dialer interface {
	DialVirtual(remote string) (net.Conn, error)
	ServeVirtual(c net.Conn)
}

Jump to

Keyboard shortcuts

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