consts

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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 (
	IconOpen         = 22
	IconRefresh      = 23
	IconCopy         = 24
	IconCopyActive   = 25
	IconSysCopy      = 134
	IconNewConf      = 149
	IconCreate       = 205
	IconImport       = 132
	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
	IconStateRunning = 101
	IconStateStopped = 21
	IconStateWorking = 238
)

Icons

View Source
const (
	FilterAllFiles = "所有文件 (*.*)|*.*"
	FilterConfig   = "配置文件 (*.zip, *.ini)|*.zip;*.ini|"
	FilterZip      = "配置文件 (*.zip)|*.zip"
	FilterCert     = "证书文件 (*.crt, *.cer)|*.crt;*.cer|"
	FilterKey      = "密钥文件 (*.key)|*.key|"
)

Filters

View Source
const RangePrefix = "range:"

Variables

View Source
var (
	ColorBlue  = walk.RGB(11, 53, 137)
	ColorGreen = walk.RGB(0, 100, 0)
	ColorGray  = walk.RGB(109, 109, 109)
)

Colors

View Source
var (
	TextRegular = Font{Family: "微软雅黑", PointSize: 9}
	TextMiddle  = Font{Family: "微软雅黑", PointSize: 12}
	TextLarge   = Font{Family: "微软雅黑", PointSize: 16}
)

Text

View Source
var (
	ValidateNonEmpty       = Regexp{Pattern: ".+"}
	ValidateRequireInteger = Regexp{Pattern: "^\\d+$"}
	ValidateInteger        = Regexp{Pattern: "^\\d*$"}
)

Validators

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