Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogLevelDebug = "debug" LogLevelError = "error" LogLevelInfo = "info" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionConfig ¶
type ExtConfig ¶
type ExtConfig struct {
Outbounds []serverConfigOutboundEntry `mapstructure:"outbounds"`
ACL serverConfigACL `mapstructure:"acl"`
Sniff serverConfigSniff `mapstructure:"sniff"`
}
type GeoLoader ¶
type GeoLoader struct {
GeoIPFilename string
GeoSiteFilename string
UpdateInterval time.Duration
DownloadFunc func(filename, url string)
DownloadErrFunc func(err error)
// contains filtered or unexported fields
}
GeoLoader provides the on-demand GeoIP/GeoSite database loading functionality required by the ACL engine. Empty filenames = automatic download from built-in URLs.
Click to show internal directories.
Click to hide internal directories.