refactor: WARP

This commit is contained in:
Shtorm
2025-06-08 19:51:17 +03:00
parent dfc6fce8bb
commit 3d8c74efa4
12 changed files with 346 additions and 253 deletions

View File

@@ -33,6 +33,8 @@ type CacheFile interface {
StoreRDRC() bool
dns.RDRCStore
StoreWARPConfig() bool
LoadMode() string
StoreMode(mode string) error
LoadSelected(group string) string
@@ -41,8 +43,8 @@ type CacheFile interface {
StoreGroupExpand(group string, expand bool) error
LoadRuleSet(tag string) *SavedBinary
SaveRuleSet(tag string, set *SavedBinary) error
LoadCloudflareProfile(tag string) *SavedBinary
SaveCloudflareProfile(tag string, set *SavedBinary) error
LoadWARPConfig(tag string) *SavedBinary
SaveWARPConfig(tag string, set *SavedBinary) error
}
type SavedBinary struct {