constant

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: GPL-2.0 Imports: 6 Imported by: 108

Documentation

Index

Constants

View Source
const (
	ProtocolTLS  = "tls"
	ProtocolHTTP = "http"
	ProtocolQUIC = "quic"
	ProtocolDNS  = "dns"
	ProtocolSTUN = "stun"
)
View Source
const (
	TypeTun         = "tun"
	TypeRedirect    = "redirect"
	TypeTProxy      = "tproxy"
	TypeDirect      = "direct"
	TypeBlock       = "block"
	TypeDNS         = "dns"
	TypeSocks       = "socks"
	TypeHTTP        = "http"
	TypeMixed       = "mixed"
	TypeShadowsocks = "shadowsocks"
	TypeVMess       = "vmess"
	TypeTrojan      = "trojan"
	TypeNaive       = "naive"
	TypeWireGuard   = "wireguard"
	TypeHysteria    = "hysteria"
	TypeTor         = "tor"
	TypeSSH         = "ssh"
	TypeShadowTLS   = "shadowtls"
)
View Source
const (
	RuleTypeDefault = "default"
	RuleTypeLogical = "logical"
)
View Source
const (
	LogicalTypeAnd = "and"
	LogicalTypeOr  = "or"
)
View Source
const (
	TCPTimeout         = 5 * time.Second
	ReadPayloadTimeout = 300 * time.Millisecond
	DNSTimeout         = 10 * time.Second
	QUICTimeout        = 30 * time.Second
	STUNTimeout        = 15 * time.Second
	UDPTimeout         = 5 * time.Minute
)
View Source
const (
	V2RayTransportTypeHTTP      = "http"
	V2RayTransportTypeWebsocket = "ws"
	V2RayTransportTypeQUIC      = "quic"
	V2RayTransportTypeGRPC      = "grpc"
)
View Source
const CGO_ENABLED = true
View Source
const IsAndroid = goos.IsAndroid == 1
View Source
const IsDarwin = goos.IsDarwin == 1
View Source
const IsDragonfly = goos.IsDragonfly == 1
View Source
const IsFreebsd = goos.IsFreebsd == 1
View Source
const IsHurd = goos.IsHurd == 1
View Source
const IsIllumos = goos.IsIllumos == 1
View Source
const IsIos = goos.IsIos == 1
View Source
const IsJs = goos.IsJs == 1
View Source
const IsLinux = goos.IsLinux == 1 || goos.IsAndroid == 1
View Source
const IsNacl = goos.IsNacl == 1
View Source
const IsNetbsd = goos.IsNetbsd == 1
View Source
const IsOpenbsd = goos.IsOpenbsd == 1
View Source
const IsPlan9 = goos.IsPlan9 == 1
View Source
const IsSolaris = goos.IsSolaris == 1
View Source
const IsWindows = goos.IsWindows == 1
View Source
const IsZos = goos.IsZos == 1
View Source
const QUIC_AVAILABLE = false
View Source
const (
	TypeSelector = "selector"
)

Variables

View Source
var (
	Version = "1.0.3"
	Commit  = ""
)
View Source
var ErrQUICNotIncluded = E.New(`QUIC is not included in this build, rebuild with -tags with_quic`)
View Source
var ErrTLSRequired = E.New("TLS required")

Functions

func FindPath

func FindPath(name string) (string, bool)

Types

This section is empty.

Directories

Path Synopsis
package goos contains GOOS-specific constants.
package goos contains GOOS-specific constants.

Jump to

Keyboard shortcuts

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