consts

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RangePrefix       = "range:"
	DefaultSTUNServer = "stun.easyvoip.com:3478"
	DefaultServerPort = 7000
)
View Source
const (
	ProtoTCP       = "tcp"
	ProtoKCP       = "kcp"
	ProtoQUIC      = "quic"
	ProtoWebsocket = "websocket"
	ProtoWSS       = "wss"
)

Protocols

View Source
const (
	ProxyTypeTCP    = "tcp"
	ProxyTypeUDP    = "udp"
	ProxyTypeXTCP   = "xtcp"
	ProxyTypeSTCP   = "stcp"
	ProxyTypeSUDP   = "sudp"
	ProxyTypeHTTP   = "http"
	ProxyTypeHTTPS  = "https"
	ProxyTypeTCPMUX = "tcpmux"
)

Proxy types

View Source
const (
	PluginHttpProxy   = "http_proxy"
	PluginSocks5      = "socks5"
	PluginStaticFile  = "static_file"
	PluginHttps2Http  = "https2http"
	PluginHttps2Https = "https2https"
	PluginHttp2Https  = "http2https"
	PluginUnixDomain  = "unix_domain_socket"
)

Plugin types

View Source
const (
	AuthToken = "token"
	AuthOIDC  = "oidc"
)

Auth methods

View Source
const (
	DeleteAbsolute = "absolute"
	DeleteRelative = "relative"
)

Delete methods

View Source
const (
	LogLevelTrace = "trace"
	LogLevelDebug = "debug"
	LogLevelInfo  = "info"
	LogLevelWarn  = "warn"
	LogLevelError = "error"
)

Log level

View Source
const DefaultLogMaxDays = 3
View Source
const (
	HTTPConnectTCPMultiplexer = "httpconnect"
)

TCP multiplexer

Variables

View Source
var (
	Bandwidth     = []string{"MB", "KB"}
	BandwidthMode = []string{"client", "server"}
)

Bandwidth

Functions

This section is empty.

Types

type ServiceState

type ServiceState int

ServiceState is the state of FRP daemon service

const (
	StateUnknown ServiceState = iota
	StateStarted
	StateStopped
	StateStarting
	StateStopping
)

Jump to

Keyboard shortcuts

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