1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-24 11:24:41 -05:00
sub2clash/model/sub.go

19 lines
850 B
Go
Raw Normal View History

2023-09-12 06:40:24 -04:00
package model
type Subscription struct {
Port int `yaml:"port,omitempty"`
SocksPort int `yaml:"socks-port,omitempty"`
2023-09-13 01:47:22 -04:00
AllowLan bool `yaml:"allow-lan"`
2023-09-12 06:40:24 -04:00
Mode string `yaml:"mode,omitempty"`
2023-09-13 01:47:22 -04:00
LogLevel string `yaml:"logger-level,omitempty"`
2023-09-12 06:40:24 -04:00
ExternalController string `yaml:"external-controller,omitempty"`
Proxies []Proxy `yaml:"proxies,omitempty"`
ProxyGroups []ProxyGroup `yaml:"proxy-groups,omitempty"`
Rules []string `yaml:"rules,omitempty"`
RuleProviders map[string]RuleProvider `yaml:"rule-providers,omitempty,omitempty"`
}
2023-09-25 03:43:21 -04:00
type NodeList struct {
Proxies []Proxy `yaml:"proxies,omitempty"`
}