utils

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssetDirEnvName    string = "xray.location.asset"
	SockFileDirEnvName string = "NEOBOX_SOCK_FILE_DIR"
)

ENVs

View Source
const (
	LocalProxyPattern string = "http://127.0.0.1:%d"
)

http client

Variables

This section is empty.

Functions

func FormatLineForShell added in v1.0.0

func FormatLineForShell(line ...string) string

func FormatProxyItemForTable added in v1.0.0

func FormatProxyItemForTable(p *outbound.ProxyItem) string

func GetHttpClient added in v1.0.0

func GetHttpClient(inPort int, timeout int) (c *http.Client, err error)

func SetNeoboxEnvs added in v1.0.0

func SetNeoboxEnvs(assetDir, sockDir string)

func SetPingWithoutRootForLinux added in v1.0.0

func SetPingWithoutRootForLinux()

Set pinger for Unix https://github.com/prometheus-community/pro-bing

Types

This section is empty.

Jump to

Keyboard shortcuts

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