Documentation
¶
Index ¶
- Constants
- Variables
- func GetMax[T MapValue](list map[int]T) (maxIdx int)
- func PrepareSubscribeUrl(sUrl string) (r string)
- type FileUrl
- type GSConf
- func (that *GSConf) AddGVCAppUrl(appUrl string)
- func (that *GSConf) AddSubscribeUrlForNeobox(subUrl string)
- func (that *GSConf) CheckResources()
- func (that *GSConf) DelGVCAppUrl(appNameOrUrl string)
- func (that *GSConf) DelSubscribeUrlForNeobox(subUrl string)
- func (that *GSConf) Initiate()
- func (that *GSConf) Load() (err error)
- func (that *GSConf) NewGit() *ggit.Git
- func (that *GSConf) Save() (err error)
- func (that *GSConf) SetDefault()
- func (that *GSConf) SetNeoboxKey()
- func (that *GSConf) ShowAppUrls()
- func (that *GSConf) ShowNeoboxKey()
- type GVCResourceConfig
- type MapValue
- type NeoboxResourceConfig
Constants ¶
View Source
const ( GSConfigFileName string = ".conf_gscraper.json" FileInfoName string = "files_info.json" CloudflareRawDomainFileName string = "cloudflare_raw_domains.txt" CloudflareDomainFileName string = "cloudflare_domains.txt" NeoboxResultFileName string = "conf.txt" NeoboxResourceLocalDirName string = "neobox_related" GVCResourceLocalDirName string = "gvc_resources" EnableProxyEnvName string = "ENV_ENABLE_GSER_PROXY" EnableGithubSpeedupEnvName string = "ENV_ENABLE_GSER_GHPROXY" GithubSpeedUpUrl string = "https://ghproxy.com/" )
Variables ¶
View Source
var CF_Raw_Domains string = `` /* 7828-byte string literal not displayed */
Functions ¶
func PrepareSubscribeUrl ¶
Types ¶
type GSConf ¶
type GSConf struct { GVCRConifg *GVCResourceConfig `json:"gvc_resource_conifg"` NeoboxRConfig *NeoboxResourceConfig `json:"neobox_resource_config"` LocalProxy string `json:"local_proxy"` }
func (*GSConf) AddGVCAppUrl ¶
func (*GSConf) AddSubscribeUrlForNeobox ¶
func (*GSConf) CheckResources ¶
func (that *GSConf) CheckResources()
func (*GSConf) DelGVCAppUrl ¶
func (*GSConf) DelSubscribeUrlForNeobox ¶
func (*GSConf) SetDefault ¶
func (that *GSConf) SetDefault()
func (*GSConf) SetNeoboxKey ¶
func (that *GSConf) SetNeoboxKey()
func (*GSConf) ShowAppUrls ¶
func (that *GSConf) ShowAppUrls()
func (*GSConf) ShowNeoboxKey ¶
func (that *GSConf) ShowNeoboxKey()
type GVCResourceConfig ¶
type NeoboxResourceConfig ¶
type NeoboxResourceConfig struct { NeoboxKey string `json:"neobox_key"` NeoboxResourceProject string `json:"neobox_resource_project"` NeoboxResourceDir string `json:"neobox_resource_dir"` ProxySubcribeUrlList map[int]string `json:"subcribe_url_list"` GeoInfoUrls map[int]FileUrl `json:"geo_info_urls"` }
Click to show internal directories.
Click to hide internal directories.