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" PluginHttp2Http = "http2http" 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
View Source
var LogLevels = []string{LogLevelTrace, LogLevelDebug, LogLevelInfo, LogLevelWarn, LogLevelError}
View Source
var PluginTypes = []string{ PluginHttp2Http, PluginHttp2Https, PluginHttps2Http, PluginHttps2Https, PluginHttpProxy, PluginSocks5, PluginStaticFile, PluginUnixDomain, }
View Source
var Protocols = []string{ProtoTCP, ProtoKCP, ProtoQUIC, ProtoWebsocket, ProtoWSS}
View Source
var ProxyTypes = []string{ ProxyTypeTCP, ProxyTypeUDP, ProxyTypeXTCP, ProxyTypeSTCP, ProxyTypeSUDP, ProxyTypeHTTP, ProxyTypeHTTPS, ProxyTypeTCPMUX, }
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 )
Click to show internal directories.
Click to hide internal directories.