Documentation ¶
Index ¶
- Constants
- func DelayTime(address string) (time.Duration, error)
- func GenerateTLSConfig() *tls.Config
- func GetCurrentAbPath() string
- func GetMacAddress() string
- func GetResourcesPath(m string) string
- func GotIpRange() error
- func LockProcess()
- func OpenBrowser(url string) error
- func SettingProxy(port int, ignore string) bool
- func ThreeExp(exp bool, a, b any) any
- func UnlockProcess()
- func UnsettingProxy() bool
- type LinuxProxySetting
- type MacProxySetting
- type ProxySetting
- type WinProxySetting
Constants ¶
View Source
const ( PathConfig = "/resources/config.json" // 配置文件路径 PathIp = "/resources/ip.txt" // ip范围文件路径 )
Variables ¶
This section is empty.
Functions ¶
func LockProcess ¶
func LockProcess()
func SettingProxy ¶
SettingProxy 设置代理 port:代理的的口号 ignore: 不走代理的地址用分号隔开 127.0.0.1;localhost;192.168.*
Types ¶
type LinuxProxySetting ¶
type LinuxProxySetting struct{}
func (LinuxProxySetting) Setting ¶
func (linux LinuxProxySetting) Setting(port int, ignore string) bool
func (LinuxProxySetting) Unsetting ¶
func (linux LinuxProxySetting) Unsetting() bool
type MacProxySetting ¶
type MacProxySetting struct{}
func (MacProxySetting) Unsetting ¶
func (mac MacProxySetting) Unsetting() bool
type WinProxySetting ¶
type WinProxySetting struct{}
func (WinProxySetting) Unsetting ¶
func (win WinProxySetting) Unsetting() bool
Click to show internal directories.
Click to hide internal directories.