parent
d4a9c6bcc3
commit
720e425c9b
1 changed files with 1 additions and 5 deletions
|
@ -2,7 +2,6 @@ package provider
|
||||||
|
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"github.com/Dreamacro/clash/component/trie"
|
"github.com/Dreamacro/clash/component/trie"
|
||||||
"github.com/Dreamacro/clash/constant"
|
"github.com/Dreamacro/clash/constant"
|
||||||
)
|
)
|
||||||
|
@ -108,9 +107,6 @@ type RuleProvider interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
parse = func(ruleType, rule string, params []string) (constant.Rule, error) {
|
|
||||||
return nil, errors.New("unimplemented function")
|
|
||||||
}
|
|
||||||
ruleProviders = map[string]*RuleProvider{}
|
ruleProviders = map[string]*RuleProvider{}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -122,7 +118,7 @@ type ruleSetProvider struct {
|
||||||
count int
|
count int
|
||||||
DomainRules *trie.DomainTrie
|
DomainRules *trie.DomainTrie
|
||||||
IPCIDRRules *trie.IpCidrTrie
|
IPCIDRRules *trie.IpCidrTrie
|
||||||
ClassicalRules []constant.Rule
|
ClassicalRules []C.Rule
|
||||||
}
|
}
|
||||||
|
|
||||||
type RuleSetProvider struct {
|
type RuleSetProvider struct {
|
||||||
|
|
Loading…
Reference in a new issue