Documentation
¶
Index ¶
- Constants
- type Config
- func (c Config) ConnectTimeoutDuration() (time.Duration, error)
- func (c Config) MonitorInterval() (time.Duration, error)
- func (c Config) MonitorTimeout() (time.Duration, error)
- func (c Config) RefreshDuration() (time.Duration, error)
- func (c Config) SpeedTestTimeoutDuration() (time.Duration, error)
- func (c Config) Validate() error
- type Monitor
- type SOCKS5
- type Store
- type Web
Constants ¶
View Source
const ( DefaultSourceURL = "http://www.vpngate.net/api/iphone/" DefaultSpeedTestURL = "" /* 158-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
SourceURL string `json:"sourceUrl"`
RefreshInterval string `json:"refreshInterval"`
FilterExpression string `json:"filterExpression"`
SelectionMode string `json:"selectionMode"`
FollowRankingOnRefresh bool `json:"followRankingOnRefresh"`
SOCKS5 SOCKS5 `json:"socks5"`
Monitor Monitor `json:"monitor"`
Web Web `json:"web"`
DatabasePath string `json:"databasePath"`
DNSServers []string `json:"dnsServers"`
SpeedTestURL string `json:"speedTestUrl"`
SpeedTestTimeout string `json:"speedTestTimeout"`
ProtocolPriority []string `json:"protocolPriority"`
ConnectTimeout string `json:"connectTimeout"`
VPNGateUsername string `json:"vpnGateUsername"`
VPNGatePassword string `json:"vpnGatePassword"`
}
func (Config) ConnectTimeoutDuration ¶
func (Config) SpeedTestTimeoutDuration ¶
Click to show internal directories.
Click to hide internal directories.