Documentation
¶
Index ¶
- Variables
- type Config
- func (that *Config) Add(dUrl string)
- func (that *Config) AddGithubVpnSubscriber(sUrl string)
- func (that *Config) ReadGvcResourceDir()
- func (that *Config) Remove(filename string)
- func (that *Config) RemoveGithubVPNSubscriber(index int)
- func (that *Config) ResetNeoboxKey()
- func (that *Config) Save()
- func (that *Config) SetDefault()
- func (that *Config) SetLocalProxy(pxy string)
- func (that *Config) Show()
- func (that *Config) ShowGithubVPNSubscriber()
- func (that *Config) ShowNeoboxKey()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GScraperConfigPath string = func() string { homeDir, _ := os.UserHomeDir() return filepath.Join(homeDir, "gscraper_conf.json") }() )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GithubSpeedupUrl string `json,koanf:"github_speedup_url"` GvcResourceDir string `json,koanf:"gvc_resource_dir"` GvcResourceProject string `json,koanf:"gvc_resource_project"` UrlList map[string]string `json,koanf:"url_list"` UrlOrder []string `json,koanf:"url_order"` GithubVPNSubscriber []string `json,koanf:"github_vpn_subscriber"` LocalProxy string `json,koanf:"local_proxy"` NeoboxKey string `json,koanf:"neobox_key"` NeoboxResultFile string `json,koanf:"neobox_result_file"` // contains filtered or unexported fields }
func (*Config) AddGithubVpnSubscriber ¶ added in v0.1.7
func (*Config) ReadGvcResourceDir ¶
func (that *Config) ReadGvcResourceDir()
func (*Config) RemoveGithubVPNSubscriber ¶ added in v0.1.7
func (*Config) ResetNeoboxKey ¶ added in v0.1.7
func (that *Config) ResetNeoboxKey()
func (*Config) SetDefault ¶
func (that *Config) SetDefault()
func (*Config) SetLocalProxy ¶ added in v0.1.7
func (*Config) ShowGithubVPNSubscriber ¶ added in v0.1.7
func (that *Config) ShowGithubVPNSubscriber()
func (*Config) ShowNeoboxKey ¶ added in v0.1.7
func (that *Config) ShowNeoboxKey()
Click to show internal directories.
Click to hide internal directories.