Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProtoTCP = "tcp" ProtoKCP = "kcp" ProtoQUIC = "quic" ProtoWebsocket = "websocket" )
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 ( ProjectURL = "https://github.com/koho/frpmgr" FRPProjectURL = "https://github.com/fatedier/frp" UpdateURL = "https://api.github.com/repos/koho/frpmgr/releases/latest" )
Links
View Source
const ( IconLogo = 7 IconOpen = 22 IconRefresh = 23 IconCopy = 24 IconCopyActive = 25 IconSysCopy = 134 IconNewConf = 149 IconCreate = 205 IconFileImport = 132 IconURLImport = 175 IconClipboard = 260 IconDelete = 131 IconExport = -174 IconQuickAdd = 111 IconEdit = 269 IconEnable = 27 IconDisable = 28 IconEditDialog = -114 IconRemote = 20 IconSSH = 26 IconVNC = 105 IconWeb = 13 IconDns = 139 IconFtp = 137 IconHttpFile = 69 IconHttpProxy = 114 IconOpenPort = 135 IconVpn = 47 IconNewVersion1 = -1028 IconNewVersion2 = 1 IconUpdate = -47 IconStateRunning = 101 IconStateStopped = 21 IconStateWorking = 238 IconDefaults = 156 IconKey = 29 IconLanguage = 89 )
Icons
View Source
const ( DialogValidate = "VALDLG" DialogTitle = 2000 DialogStatic1 = 2001 DialogStatic2 = 2002 DialogEdit = 2003 )
Dialogs
View Source
const (
HTTPConnectTCPMultiplexer = "httpconnect"
)
TCP multiplexer
View Source
const RangePrefix = "range:"
Variables ¶
View Source
var ( Bandwidth = []string{"MB", "KB"} BandwidthMode = []string{ config.BandwidthLimitModeClient, config.BandwidthLimitModeServer, } )
Bandwidth
View Source
var ( ColorBlue = walk.RGB(0, 38, 247) ColorDarkBlue = walk.RGB(11, 53, 137) ColorGray = walk.RGB(109, 109, 109) ColorGrayBG = walk.Color(win.GetSysColor(win.COLOR_BTNFACE)) )
Colors
View Source
var ( TextRegular = Font{Family: defaultFontFamily, PointSize: 9} TextMedium = Font{Family: defaultFontFamily, PointSize: 10} TextLarge = Font{Family: defaultFontFamily, PointSize: 16} )
Text
View Source
var ( FilterAllFiles = i18n.Sprintf("All Files") + " (*.*)|*.*" FilterConfig = i18n.Sprintf("Configuration Files") + " (*.zip, *.ini)|*.zip;*.ini|" FilterZip = i18n.Sprintf("Configuration Files") + " (*.zip)|*.zip" FilterCert = i18n.Sprintf("Certificate Files") + " (*.crt, *.cer)|*.crt;*.cer|" FilterKey = i18n.Sprintf("Key Files") + " (*.key)|*.key|" FilterLog = i18n.Sprintf("Log Files") + " (*.log, *.txt)|*.log;*.txt|" )
Filters
View Source
var ( ValidateNonEmpty = validators.Regexp{Pattern: "[^\\s]+"} ValidateRequireInteger = validators.Regexp{Pattern: "^\\d+$"} ValidateInteger = validators.Regexp{Pattern: "^\\d*$"} ValidatePortRange = []Validator{ValidateRequireInteger, validators.Range{Min: 0, Max: 65535}} )
Validators
View Source
var LogLevels = []string{LogLevelTrace, LogLevelDebug, LogLevelInfo, LogLevelWarn, LogLevelError}
View Source
var PluginTypes = []string{ PluginHttpProxy, PluginSocks5, PluginStaticFile, PluginHttps2Http, PluginHttps2Https, PluginHttp2Https, PluginUnixDomain, }
View Source
var Protocols = []string{ProtoTCP, ProtoKCP, ProtoQUIC, ProtoWebsocket}
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.