Add basic clash api

This commit is contained in:
世界
2022-07-19 22:45:55 +08:00
parent c7fabe40ed
commit c5b3e8b042
36 changed files with 1498 additions and 41 deletions
+4
View File
@@ -34,10 +34,14 @@ type Router interface {
AutoDetectInterface() bool
AutoDetectInterfaceName() string
AutoDetectInterfaceIndex() int
Rules() []Rule
SetTrafficController(controller TrafficController)
}
type Rule interface {
Service
Type() string
UpdateGeosite() error
Match(metadata *InboundContext) bool
Outbound() string