Documentation
¶
Index ¶
- func AddProxy(sub *model.Subscription, autotest bool, lazy bool, clashType model.ClashType, ...)
- func AppendRules(sub *model.Subscription, rules ...string)
- func AppenddRuleProvider(sub *model.Subscription, providerName string, group string, ...)
- func BuildSub(clashType model.ClashType, query model.SubConfig, template string, ...) (*model.Subscription, error)
- func FetchSubscriptionFromAPI(url string, userAgent string, retryTimes int) ([]byte, error)
- func FetchSubscriptionUserInfo(url string, userAgent string, retryTimes int) (string, error)
- func GetContryName(countryKey string) string
- func LoadSubscription(url string, refresh bool, userAgent string, cacheExpire int64, retryTimes int) ([]byte, error)
- func LoadTemplate(templatePath string) ([]byte, error)
- func MKDir(dir string) error
- func MergeSubAndTemplate(temp *model.Subscription, sub *model.Subscription, igcg bool)
- func MkEssentialDir() error
- func PrependRuleProvider(sub *model.Subscription, providerName string, group string, ...)
- func PrependRules(sub *model.Subscription, rules ...string)
- func RandomString(length int) string
- func Request(retryTimes int) *resty.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendRules ¶
func AppendRules(sub *model.Subscription, rules ...string)
func AppenddRuleProvider ¶
func AppenddRuleProvider( sub *model.Subscription, providerName string, group string, provider model.RuleProvider, )
func GetContryName ¶
func LoadSubscription ¶
func LoadTemplate ¶
func MergeSubAndTemplate ¶
func MergeSubAndTemplate(temp *model.Subscription, sub *model.Subscription, igcg bool)
func MkEssentialDir ¶
func MkEssentialDir() error
func PrependRuleProvider ¶
func PrependRuleProvider( sub *model.Subscription, providerName string, group string, provider model.RuleProvider, )
func PrependRules ¶
func PrependRules(sub *model.Subscription, rules ...string)
func RandomString ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.