anbuNetwork

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIPInfo added in v0.2.4

func GetLocalIPInfo(includeIPv6 bool)

func GetPublicIP

func GetPublicIP() (u.Dictionary, error)

func ReverseSSHTunnel added in v0.2.1

func ReverseSSHTunnel(localAddr, remoteAddr, sshAddr, user string, authMethods []ssh.AuthMethod)

func SSHTunnel added in v0.0.12

func SSHTunnel(localAddr, remoteAddr, sshAddr, user string, authMethods []ssh.AuthMethod)

func TCPTunnel added in v0.0.12

func TCPTunnel(localAddr, remoteAddr string, useTLS, insecureSkipVerify bool)

func TunnelSSHPassword added in v0.2.1

func TunnelSSHPassword(password string) ssh.AuthMethod

func TunnelSSHPrivateKey added in v0.2.1

func TunnelSSHPrivateKey(keyPath string) (ssh.AuthMethod, error)

Types

type HTTPServer added in v0.1.1

type HTTPServer struct {
	Options *HTTPServerOptions
	Server  *http.Server
}

func (*HTTPServer) Start added in v0.1.1

func (s *HTTPServer) Start() error

func (*HTTPServer) Stop added in v0.1.1

func (s *HTTPServer) Stop() error

type HTTPServerOptions added in v0.1.1

type HTTPServerOptions struct {
	ListenAddress string
	EnableUpload  bool
	EnableTLS     bool
}

type NetworkInterface added in v0.2.4

type NetworkInterface struct {
	Name       string
	IPv4Addr   string
	IPv4Mask   string
	IPv6Addr   string
	MACAddr    string
	IsUp       bool
	MTU        int
	IsLoopback bool
}

Jump to

Keyboard shortcuts

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