Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LEXUGE/dcompass
/ functions
Functions
145 in github.com/LEXUGE/dcompass
⨍
Functions
145
◇
Types & classes
57
↓ 16 callers
Method
iter
(&self)
droute/src/router/script/rune_scripting/message/helper.rs:149
↓ 10 callers
Method
insert
Pass in a domain and insert it into the matcher. This ignores any line containing chars other than A-Z, a-z, 1-9, and -. See also: https://tools.ietf.
dmatcher/src/domain.rs:70
↓ 9 callers
Method
add_upstream
Add an upstream builder
droute/src/router/upstreams/builder.rs:58
↓ 8 callers
Method
into_iter
(self)
droute/src/router/script/rune_scripting/message/helper.rs:116
↓ 7 callers
Method
build
(self, upstreams: Upstreams)
droute/src/router/script/native.rs:86
↓ 7 callers
Method
send
Write out in this way to allow recursion for async functions Send the query to a tagged upstream and a given cache mode.
droute/src/router/upstreams/mod.rs:149
↓ 5 callers
Method
add_tag
Add another upstream to the hybrid upstream about to build
droute/src/router/upstreams/upstream/builder.rs:91
↓ 5 callers
Method
get
(&self)
droute/src/cache.rs:94
↓ 5 callers
Function
init
(p: Parsed)
dcompass/src/main.rs:64
↓ 4 callers
Method
async_try_into
Build a new `Router` from configuration and check the validity. `data` is the content of the configuration file.
droute/src/router/mod.rs:126
↓ 4 callers
Method
insert_multi
Pass in a string containing `\n` and get all domains inserted.
dmatcher/src/domain.rs:62
↓ 4 callers
Method
query
(&self, msg: &Message<Bytes>)
droute/src/router/upstreams/upstream/qhandle/udp.rs:63
↓ 3 callers
Method
a
(&self)
droute/src/cache.rs:70
↓ 3 callers
Method
b
(&self)
droute/src/cache.rs:73
↓ 3 callers
Method
contains
Whether the given country code contains the given IP address
droute/src/router/script/utils/geoip.rs:67
↓ 3 callers
Function
get_options_from_msg
(msg: &Message)
droute/src/router/script/rune_scripting/message/mod.rs:358
↓ 3 callers
Method
run
Run it
droute/src/mock.rs:40
↓ 3 callers
Function
update_opt
(msg: &mut Message, opt: OptRecordsIter)
droute/src/router/script/rune_scripting/message/mod.rs:432
↓ 2 callers
Method
add_file
Add IP CIDRs from a files where each IP CIDR is seperated from one another by `\n`.
droute/src/router/script/utils/ipcidr.rs:24
↓ 2 callers
Method
async_try_into
Build the Upstreams from an UpstreamsBuilder
droute/src/router/upstreams/builder.rs:71
↓ 2 callers
Method
borrow
(&self)
droute/src/cache.rs:45
↓ 2 callers
Function
create_client_config
(sni: &bool)
droute/src/router/upstreams/upstream/qhandle/https.rs:24
↓ 2 callers
Function
create_router
(script_builder: impl ScriptBuilder<T>)
droute/benches/rune_script.rs:52
↓ 2 callers
Function
create_router
(script_builder: impl ScriptBuilder<T>)
droute/benches/native_script.rs:55
↓ 2 callers
Function
into_dnames
(list: &str)
droute/src/router/script/utils/domain.rs:27
↓ 2 callers
Function
modify_opt
( msg: &Message<Bytes>, opt: Option<OptRecordsIter>, )
droute/src/router/script/rune_scripting/message/helper.rs:158
↓ 2 callers
Method
put
(&self, tag: Label, query: &Message<Bytes>, msg: Message<Bytes>)
droute/src/cache.rs:122
↓ 2 callers
Method
resolve
Resolve the query into a response.
droute/src/router/upstreams/upstream/mod.rs:50
↓ 2 callers
Method
tags
Return the tags of all the upstreams.
droute/src/router/upstreams/mod.rs:107
↓ 2 callers
Function
to_opt
(record: &DnsRecord)
droute/src/router/script/rune_scripting/message/mod.rs:343
↓ 2 callers
Method
try_hybrid
(&self)
droute/src/router/upstreams/upstream/mod.rs:42
↓ 1 callers
Method
add
Increment the internal value
droute/src/lib.rs:114
↓ 1 callers
Method
add_qname
Add a question name to the domain matcher's list
droute/src/router/script/utils/domain.rs:55
↓ 1 callers
Function
bind_addr
(is_ipv4: bool)
droute/src/router/upstreams/upstream/qhandle/udp.rs:53
↓ 1 callers
Function
blackhole
Create a message that stops the requestor to send the query again.
droute/src/router/script/utils/blackhole.rs:44
↓ 1 callers
Method
check
(&self)
droute/src/router/upstreams/upstream/qhandle/qos_none.rs:28
↓ 1 callers
Function
create_client_config
(sni: &bool)
droute/src/router/upstreams/upstream/qhandle/tls/rustls.rs:25
↓ 1 callers
Function
get_builtin_db
If both geoip-maxmind and geoip-cn are enabled, geoip-maxmind will be used
droute/src/router/script/utils/geoip.rs:31
↓ 1 callers
Function
get_options
(data: &mut OptRecord)
droute/src/router/script/rune_scripting/message/mod.rs:331
↓ 1 callers
Method
matches
Match the domain against inserted domain rules. If `apple.com` is inserted, then `www.apple.com` and `stores.www.apple.com` is considered as matched w
dmatcher/src/domain.rs:81
↓ 1 callers
Method
resolve
Resolve the DNS query with routing rules defined.
droute/src/router/mod.rs:57
↓ 1 callers
Method
reusable
Although this is not used actually...
droute/src/router/upstreams/upstream/qhandle/mod.rs:214
↓ 1 callers
Method
route
( &self, query: Message<Bytes>, ctx: Option<QueryContext>, )
droute/src/router/script/native.rs:38
↓ 1 callers
Function
send
( upstreams: &Upstreams, tag: &str, cache_mode: CacheMode, msg: &Message,
droute/src/router/script/rune_scripting/basis.rs:36
↓ 1 callers
Method
sub
Subtract from the internal value
droute/src/lib.rs:120
↓ 1 callers
Method
val
Get the internal value
droute/src/lib.rs:109
↓ 1 callers
Method
validate
(&self)
droute/src/cache.rs:98
↓ 1 callers
Method
validate
(&self, _: Option<&Vec<Label>>)
droute/src/router/mod.rs:42
↓ 1 callers
Method
validate
(&self, _: Option<&Vec<Label>>)
droute/src/router/upstreams/mod.rs:80
Method
add_file
Add all question names in a file to the domain matcher's list
droute/src/router/script/utils/domain.rs:61
Method
async_try_into
(self)
droute/src/router/upstreams/upstream/builder.rs:101
Function
bench_match
(c: &mut Criterion)
dmatcher/benches/benchmark.rs:22
Function
bench_resolve
(c: &mut Criterion)
droute/benches/rune_script.rs:70
Function
bench_resolve
(c: &mut Criterion)
droute/benches/native_script.rs:73
Method
build
Build `Script` with upstreams
droute/src/router/script/rune_scripting/mod.rs:102
Function
builtin_db_not_china
()
droute/src/router/script/utils/geoip.rs:95
Method
check
(&self)
droute/src/router/upstreams/upstream/qhandle/qos_governor.rs:41
Function
check_default
()
dcompass/src/tests.rs:20
Function
check_example_cn
()
dcompass/src/tests.rs:47
Function
check_example_maxmind
()
dcompass/src/tests.rs:36
Function
check_fail_recursion
()
dcompass/src/tests.rs:90
Function
check_success_geoip
()
dcompass/src/tests.rs:70
Function
check_success_header_yaml
()
dcompass/src/tests.rs:80
Function
check_success_ipcidr
()
dcompass/src/tests.rs:27
Function
check_success_query_cache_mode
()
dcompass/src/tests.rs:57
Method
conn_type
(&self)
droute/src/router/upstreams/upstream/qhandle/udp.rs:48
Method
conn_type
(&self)
droute/src/router/upstreams/upstream/qhandle/https.rs:137
Method
conn_type
(&self)
droute/src/router/upstreams/upstream/qhandle/tls/rustls.rs:104
Method
conn_type
(&self)
droute/src/router/upstreams/upstream/qhandle/tls/native_tls.rs:85
Method
contains
Check if IP CIDR set contains the given IP address.
droute/src/router/script/utils/ipcidr.rs:39
Method
contains
Check if the question name matches any in the matcher.
droute/src/router/script/utils/domain.rs:71
Method
create
(&self)
droute/src/router/upstreams/upstream/qhandle/udp.rs:42
Method
create
(&self)
droute/src/router/upstreams/upstream/qhandle/mod.rs:72
Method
create
(&self)
droute/src/router/upstreams/upstream/qhandle/https.rs:133
Method
create
(&self)
droute/src/router/upstreams/upstream/qhandle/tls/rustls.rs:78
Method
create
(&self)
droute/src/router/upstreams/upstream/qhandle/tls/native_tls.rs:62
Method
create_default
Create a geoip matcher from the buffer
droute/src/router/script/utils/geoip.rs:59
Method
default
()
dmatcher/src/domain.rs:48
Method
default
()
droute/src/router/script/utils/ipcidr.rs:45
Method
default
()
droute/src/router/script/utils/domain.rs:43
Method
default
()
droute/src/router/upstreams/mod.rs:51
Method
default
()
droute/src/router/upstreams/upstream/builder.rs:79
Function
default_cache_size
()
droute/src/router/upstreams/builder.rs:27
Function
default_https_max_pool_size
()
droute/src/router/upstreams/upstream/builder.rs:70
Function
default_timeout
Default value for timeout
droute/src/router/upstreams/upstream/builder.rs:32
Function
default_tls_max_pool_size
()
droute/src/router/upstreams/upstream/builder.rs:53
Function
default_tls_max_reuse
()
droute/src/router/upstreams/upstream/builder.rs:58
Function
default_tls_reuse_timeout
()
droute/src/router/upstreams/upstream/builder.rs:63
Function
default_udp_max_pool_size
RATIONALE BEHIND THIS DEFAULT VALUE Actually, if the tolerance level is 2, then the expected number of queries needed to get a valid response is about
droute/src/router/upstreams/upstream/builder.rs:46
Function
dns_record_from_ref
( src: AllRecordData<Bytes, ParsedDname<&Bytes>>, )
droute/src/router/script/rune_scripting/message/helper.rs:30
Method
eq
(&self, other: &Self)
droute/src/cache.rs:58
Function
fail_recursion
()
droute/src/router/upstreams/mod.rs:218
Method
from
(_: Option<NonZeroU32>)
droute/src/router/upstreams/upstream/qhandle/qos_none.rs:22
Method
from
(qps: Option<NonZeroU32>)
droute/src/router/upstreams/upstream/qhandle/qos_governor.rs:31
Method
from_buf
(buf: Vec<u8>)
droute/src/router/script/utils/geoip.rs:52
Method
from_map
Create an UpstreamsBuilder from a set of upstreams and the cache_size for all of them.
droute/src/router/upstreams/builder.rs:42
Method
from_path
Create a geoip matcher from the database file with the given path
droute/src/router/script/utils/geoip.rs:42
Method
from_str
(s: &str)
droute/src/router/upstreams/mod.rs:59
Function
geoip_from_path
(path: &str)
droute/src/router/script/rune_scripting/utils.rs:105
Method
hash
(&self, state: &mut H)
droute/src/cache.rs:51
next →
1–100 of 145, ranked by callers