Documentation ¶
Index ¶
Constants ¶
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 ( 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 = 11 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 IconSocks5 = 146 IconVpn = 47 IconNewVersion1 = -1028 IconNewVersion2 = 1 IconUpdate = -47 IconStateRunning = 101 IconStateStopped = 21 IconStateWorking = 238 )
Icons
View Source
const (
HTTPConnectTCPMultiplexer = "httpconnect"
)
TCP multiplexer
View Source
const RangePrefix = "range:"
Variables ¶
View Source
var ( ColorBlue = walk.RGB(11, 53, 137) ColorGray = walk.RGB(109, 109, 109) )
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 = Regexp{Pattern: "[^\\s]+"} ValidateRequireInteger = Regexp{Pattern: "^\\d+$"} ValidateInteger = Regexp{Pattern: "^\\d*$"} )
Validators
View Source
var PluginTypes = []string{ PluginHttpProxy, PluginSocks5, PluginStaticFile, PluginHttps2Http, PluginHttps2Https, PluginHttp2Https, PluginUnixDomain, }
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.