Documentation
¶
Index ¶
- Variables
- func AddRulesCidr(process AddRoute, rules string)
- func CloseStore()
- func InitDB(path string) error
- func NewUidDumper(ud UidDumper) netapi.ProcessDumper
- type AddRoute
- type App
- type CIDR
- type Closer
- type MapStore
- type NotifySpped
- type Opts
- type SocketProtect
- type Store
- type TUN
- type UidDumper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllowLanKey = "allow_lan" AppendHTTPProxy = "Append HTTP Proxy to VPN" IPv6Key = "ipv6" AutoConnectKey = "auto_connect" PerAppKey = "per_app" AppBypassKey = "app_bypass" UDPProxyFQDNKey = "UDP proxy FQDN" SniffKey = "Sniff" SaveLogcatKey = "save_logcat" RouteKey = "route" FakeDNSCIDRKey = "fake_dns_cidr" FakeDNSv6CIDRKey = "fake_dnsv6_cidr" TunDriverKey = "Tun Driver" AppListKey = "app_list" LogLevelKey = "Log Level" RuleByPassUrlKey = "Rule Update Bypass" RemoteRulesKey = "remote_rules" BlockKey = "Block" ProxyKey = "Proxy" DirectKey = "Direct" TCPBypassKey = "TCP" UDPBypassKey = "UDP" HostsKey = "hosts" DNSPortKey = "dns_port" HTTPPortKey = "http_port" YuhaiinPortKey = "yuhaiin_port" DNSHijackingKey = "dns_hijacking" RemoteDNSHostKey = "remote_dns_host" RemoteDNSTypeKey = "remote_dns_type" RemoteDNSSubnetKey = "remote_dns_subnet" RemoteDNSTLSServerNameKey = "remote_dns_tls_server_name" RemoteDNSResolveDomainKey = "remote_dns_resolve_domain" LocalDNSHostKey = "local_dns_host" LocalDNSTypeKey = "local_dns_type" LocalDNSSubnetKey = "local_dns_subnet" LocalDNSTLSServerNameKey = "local_dns_tls_server_name" BootstrapDNSHostKey = "bootstrap_dns_host" BootstrapDNSTypeKey = "bootstrap_dns_type" BootstrapDNSSubnetKey = "bootstrap_dns_subnet" BootstrapDNSTLSServerNameKey = "bootstrap_dns_tls_server_name" )
Functions ¶
func AddRulesCidr ¶
func CloseStore ¶ added in v0.3.7
func CloseStore()
func NewUidDumper ¶
func NewUidDumper(ud UidDumper) netapi.ProcessDumper
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) SaveNewBypass ¶
type MapStore ¶ added in v0.3.7
type MapStore struct {
// contains filtered or unexported fields
}
func MapStoreFromJson ¶ added in v0.3.7
func (*MapStore) GetBoolean ¶ added in v0.3.7
type NotifySpped ¶ added in v0.3.7
type Opts ¶
type Opts struct {
CloseFallback Closer
NotifySpped NotifySpped
MapStore *MapStore
TUN *TUN `json:"tun"`
Savepath string `json:"savepath"`
}
type SocketProtect ¶
type Store ¶ added in v0.3.7
type Store interface {
PutString(key string, value string)
PutInt(key string, value int32)
PutBoolean(key string, value bool)
PutLong(key string, value int64)
PutFloat(key string, value float32)
GetString(key string) string
GetInt(key string) int32
GetBoolean(key string) bool
GetLong(key string) int64
GetFloat(key string) float32
Dump() []byte
}
Click to show internal directories.
Click to hide internal directories.