MCPcopy Create free account

hub / github.com/LEXUGE/dcompass / functions

Functions145 in github.com/LEXUGE/dcompass

↓ 16 callersMethoditer
(&self)
droute/src/router/script/rune_scripting/message/helper.rs:149
↓ 10 callersMethodinsert
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 callersMethodadd_upstream
Add an upstream builder
droute/src/router/upstreams/builder.rs:58
↓ 8 callersMethodinto_iter
(self)
droute/src/router/script/rune_scripting/message/helper.rs:116
↓ 7 callersMethodbuild
(self, upstreams: Upstreams)
droute/src/router/script/native.rs:86
↓ 7 callersMethodsend
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 callersMethodadd_tag
Add another upstream to the hybrid upstream about to build
droute/src/router/upstreams/upstream/builder.rs:91
↓ 5 callersMethodget
(&self)
droute/src/cache.rs:94
↓ 5 callersFunctioninit
(p: Parsed)
dcompass/src/main.rs:64
↓ 4 callersMethodasync_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 callersMethodinsert_multi
Pass in a string containing `\n` and get all domains inserted.
dmatcher/src/domain.rs:62
↓ 4 callersMethodquery
(&self, msg: &Message<Bytes>)
droute/src/router/upstreams/upstream/qhandle/udp.rs:63
↓ 3 callersMethoda
(&self)
droute/src/cache.rs:70
↓ 3 callersMethodb
(&self)
droute/src/cache.rs:73
↓ 3 callersMethodcontains
Whether the given country code contains the given IP address
droute/src/router/script/utils/geoip.rs:67
↓ 3 callersFunctionget_options_from_msg
(msg: &Message)
droute/src/router/script/rune_scripting/message/mod.rs:358
↓ 3 callersMethodrun
Run it
droute/src/mock.rs:40
↓ 3 callersFunctionupdate_opt
(msg: &mut Message, opt: OptRecordsIter)
droute/src/router/script/rune_scripting/message/mod.rs:432
↓ 2 callersMethodadd_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 callersMethodasync_try_into
Build the Upstreams from an UpstreamsBuilder
droute/src/router/upstreams/builder.rs:71
↓ 2 callersMethodborrow
(&self)
droute/src/cache.rs:45
↓ 2 callersFunctioncreate_client_config
(sni: &bool)
droute/src/router/upstreams/upstream/qhandle/https.rs:24
↓ 2 callersFunctioncreate_router
(script_builder: impl ScriptBuilder<T>)
droute/benches/rune_script.rs:52
↓ 2 callersFunctioncreate_router
(script_builder: impl ScriptBuilder<T>)
droute/benches/native_script.rs:55
↓ 2 callersFunctioninto_dnames
(list: &str)
droute/src/router/script/utils/domain.rs:27
↓ 2 callersFunctionmodify_opt
( msg: &Message<Bytes>, opt: Option<OptRecordsIter>, )
droute/src/router/script/rune_scripting/message/helper.rs:158
↓ 2 callersMethodput
(&self, tag: Label, query: &Message<Bytes>, msg: Message<Bytes>)
droute/src/cache.rs:122
↓ 2 callersMethodresolve
Resolve the query into a response.
droute/src/router/upstreams/upstream/mod.rs:50
↓ 2 callersMethodtags
Return the tags of all the upstreams.
droute/src/router/upstreams/mod.rs:107
↓ 2 callersFunctionto_opt
(record: &DnsRecord)
droute/src/router/script/rune_scripting/message/mod.rs:343
↓ 2 callersMethodtry_hybrid
(&self)
droute/src/router/upstreams/upstream/mod.rs:42
↓ 1 callersMethodadd
Increment the internal value
droute/src/lib.rs:114
↓ 1 callersMethodadd_qname
Add a question name to the domain matcher's list
droute/src/router/script/utils/domain.rs:55
↓ 1 callersFunctionbind_addr
(is_ipv4: bool)
droute/src/router/upstreams/upstream/qhandle/udp.rs:53
↓ 1 callersFunctionblackhole
Create a message that stops the requestor to send the query again.
droute/src/router/script/utils/blackhole.rs:44
↓ 1 callersMethodcheck
(&self)
droute/src/router/upstreams/upstream/qhandle/qos_none.rs:28
↓ 1 callersFunctioncreate_client_config
(sni: &bool)
droute/src/router/upstreams/upstream/qhandle/tls/rustls.rs:25
↓ 1 callersFunctionget_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 callersFunctionget_options
(data: &mut OptRecord)
droute/src/router/script/rune_scripting/message/mod.rs:331
↓ 1 callersMethodmatches
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 callersMethodresolve
Resolve the DNS query with routing rules defined.
droute/src/router/mod.rs:57
↓ 1 callersMethodreusable
Although this is not used actually...
droute/src/router/upstreams/upstream/qhandle/mod.rs:214
↓ 1 callersMethodroute
( &self, query: Message<Bytes>, ctx: Option<QueryContext>, )
droute/src/router/script/native.rs:38
↓ 1 callersFunctionsend
( upstreams: &Upstreams, tag: &str, cache_mode: CacheMode, msg: &Message,
droute/src/router/script/rune_scripting/basis.rs:36
↓ 1 callersMethodsub
Subtract from the internal value
droute/src/lib.rs:120
↓ 1 callersMethodval
Get the internal value
droute/src/lib.rs:109
↓ 1 callersMethodvalidate
(&self)
droute/src/cache.rs:98
↓ 1 callersMethodvalidate
(&self, _: Option<&Vec<Label>>)
droute/src/router/mod.rs:42
↓ 1 callersMethodvalidate
(&self, _: Option<&Vec<Label>>)
droute/src/router/upstreams/mod.rs:80
Methodadd_file
Add all question names in a file to the domain matcher's list
droute/src/router/script/utils/domain.rs:61
Methodasync_try_into
(self)
droute/src/router/upstreams/upstream/builder.rs:101
Functionbench_match
(c: &mut Criterion)
dmatcher/benches/benchmark.rs:22
Functionbench_resolve
(c: &mut Criterion)
droute/benches/rune_script.rs:70
Functionbench_resolve
(c: &mut Criterion)
droute/benches/native_script.rs:73
Methodbuild
Build `Script` with upstreams
droute/src/router/script/rune_scripting/mod.rs:102
Functionbuiltin_db_not_china
()
droute/src/router/script/utils/geoip.rs:95
Methodcheck
(&self)
droute/src/router/upstreams/upstream/qhandle/qos_governor.rs:41
Functioncheck_default
()
dcompass/src/tests.rs:20
Functioncheck_example_cn
()
dcompass/src/tests.rs:47
Functioncheck_example_maxmind
()
dcompass/src/tests.rs:36
Functioncheck_fail_recursion
()
dcompass/src/tests.rs:90
Functioncheck_success_geoip
()
dcompass/src/tests.rs:70
Functioncheck_success_header_yaml
()
dcompass/src/tests.rs:80
Functioncheck_success_ipcidr
()
dcompass/src/tests.rs:27
Functioncheck_success_query_cache_mode
()
dcompass/src/tests.rs:57
Methodconn_type
(&self)
droute/src/router/upstreams/upstream/qhandle/udp.rs:48
Methodconn_type
(&self)
droute/src/router/upstreams/upstream/qhandle/https.rs:137
Methodconn_type
(&self)
droute/src/router/upstreams/upstream/qhandle/tls/rustls.rs:104
Methodconn_type
(&self)
droute/src/router/upstreams/upstream/qhandle/tls/native_tls.rs:85
Methodcontains
Check if IP CIDR set contains the given IP address.
droute/src/router/script/utils/ipcidr.rs:39
Methodcontains
Check if the question name matches any in the matcher.
droute/src/router/script/utils/domain.rs:71
Methodcreate
(&self)
droute/src/router/upstreams/upstream/qhandle/udp.rs:42
Methodcreate
(&self)
droute/src/router/upstreams/upstream/qhandle/mod.rs:72
Methodcreate
(&self)
droute/src/router/upstreams/upstream/qhandle/https.rs:133
Methodcreate
(&self)
droute/src/router/upstreams/upstream/qhandle/tls/rustls.rs:78
Methodcreate
(&self)
droute/src/router/upstreams/upstream/qhandle/tls/native_tls.rs:62
Methodcreate_default
Create a geoip matcher from the buffer
droute/src/router/script/utils/geoip.rs:59
Methoddefault
()
dmatcher/src/domain.rs:48
Methoddefault
()
droute/src/router/script/utils/ipcidr.rs:45
Methoddefault
()
droute/src/router/script/utils/domain.rs:43
Methoddefault
()
droute/src/router/upstreams/mod.rs:51
Methoddefault
()
droute/src/router/upstreams/upstream/builder.rs:79
Functiondefault_cache_size
()
droute/src/router/upstreams/builder.rs:27
Functiondefault_https_max_pool_size
()
droute/src/router/upstreams/upstream/builder.rs:70
Functiondefault_timeout
Default value for timeout
droute/src/router/upstreams/upstream/builder.rs:32
Functiondefault_tls_max_pool_size
()
droute/src/router/upstreams/upstream/builder.rs:53
Functiondefault_tls_max_reuse
()
droute/src/router/upstreams/upstream/builder.rs:58
Functiondefault_tls_reuse_timeout
()
droute/src/router/upstreams/upstream/builder.rs:63
Functiondefault_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
Functiondns_record_from_ref
( src: AllRecordData<Bytes, ParsedDname<&Bytes>>, )
droute/src/router/script/rune_scripting/message/helper.rs:30
Methodeq
(&self, other: &Self)
droute/src/cache.rs:58
Functionfail_recursion
()
droute/src/router/upstreams/mod.rs:218
Methodfrom
(_: Option<NonZeroU32>)
droute/src/router/upstreams/upstream/qhandle/qos_none.rs:22
Methodfrom
(qps: Option<NonZeroU32>)
droute/src/router/upstreams/upstream/qhandle/qos_governor.rs:31
Methodfrom_buf
(buf: Vec<u8>)
droute/src/router/script/utils/geoip.rs:52
Methodfrom_map
Create an UpstreamsBuilder from a set of upstreams and the cache_size for all of them.
droute/src/router/upstreams/builder.rs:42
Methodfrom_path
Create a geoip matcher from the database file with the given path
droute/src/router/script/utils/geoip.rs:42
Methodfrom_str
(s: &str)
droute/src/router/upstreams/mod.rs:59
Functiongeoip_from_path
(path: &str)
droute/src/router/script/rune_scripting/utils.rs:105
Methodhash
(&self, state: &mut H)
droute/src/cache.rs:51
next →1–100 of 145, ranked by callers