platform

package
v1.8.25 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginLocation  = "xray.location.plugin"
	ConfigLocation  = "xray.location.config"
	ConfdirLocation = "xray.location.confdir"
	ToolLocation    = "xray.location.tool"
	AssetLocation   = "xray.location.asset"

	UseReadV         = "xray.buf.readv"
	UseFreedomSplice = "xray.buf.splice"
	UseVmessPadding  = "xray.vmess.padding"
	UseCone          = "xray.cone.disabled"

	BufferSize           = "xray.ray.buffer.size"
	BrowserDialerAddress = "xray.browser.dialer"
	XUDPLog              = "xray.xudp.show"
	XUDPBaseKey          = "xray.xudp.basekey"
)

Variables

This section is empty.

Functions

func ExpandEnv

func ExpandEnv(s string) string

func GetAssetLocation

func GetAssetLocation(file string) string

GetAssetLocation searches for `file` in certain locations

func GetConfDirPath

func GetConfDirPath() string

GetConfDirPath reads "xray.location.confdir"

func GetConfigurationPath

func GetConfigurationPath() string

func GetPluginDirectory

func GetPluginDirectory() string

func GetToolLocation

func GetToolLocation(file string) string

func LineSeparator

func LineSeparator() string

func NormalizeEnvName

func NormalizeEnvName(name string) string

Types

type EnvFlag

type EnvFlag struct {
	Name    string
	AltName string
}

func NewEnvFlag

func NewEnvFlag(name string) EnvFlag

func (EnvFlag) GetValue

func (f EnvFlag) GetValue(defaultValue func() string) string

func (EnvFlag) GetValueAsInt

func (f EnvFlag) GetValueAsInt(defaultValue int) int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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