Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppla/moto
/ functions
Functions
35 in github.com/cppla/moto
⨍
Functions
35
◇
Types & classes
9
↓ 6 callers
Function
outboundDial
outboundDial 先尝试预热池,失败再发起新建连接。 之前返回 (conn, usedFlag, error),由于当前不再区分来源,精简为 (conn, error)。
controller/prewarm.go:148
↓ 5 callers
Method
ensureLocked
ensureLocked 会持续补齐预热连接直到达到期望值。
controller/prewarm.go:59
↓ 3 callers
Function
fmt_perc
(vals, name)
test/bench.py:178
↓ 3 callers
Function
storeBoostWinner
(ruleName, addr string)
controller/boost.go:45
↓ 2 callers
Function
DialFast
DialFast 实现简化版的 Happy Eyeballs,并记录拨号延迟。
controller/direct.go:19
↓ 2 callers
Function
HandleBoost
HandleBoost 同时发起多路拨号,挑选最先成功的连接并套上单边加速。
controller/boost.go:105
↓ 2 callers
Function
fmt_dist
(c: Counter, top=5)
test/bench.py:175
↓ 2 callers
Function
run_phase
(phase_name: str, concurrency: int, total: int, timeout: float, jitter: float, results: Li
test/bench.py:145
↓ 2 callers
Method
verify
verify 校验规则配置,并在需要时编译正则。
config/setting.go:93
↓ 1 callers
Function
HandleNormal
HandleNormal 会依次尝试各个目标,并在成功的连接上挂载自适应的单边加速。
controller/normal.go:14
↓ 1 callers
Function
HandleRegexp
HandleRegexp 通过正则检测首包选出目标,再转发后续数据流。
controller/regex.go:15
↓ 1 callers
Function
HandleRoundrobin
HandleRoundrobin 顺序轮转目标,失败时回退到 boost 模式。
controller/roundrobin.go:17
↓ 1 callers
Function
Listen
Listen 根据规则启动 TCP 监听,做基础限流并分发到对应模式。
controller/server.go:13
↓ 1 callers
Function
Reload
Reload 从指定路径重载配置,并执行默认值填充与校验。
config/setting.go:71
↓ 1 callers
Function
acquirePrewarmed
acquirePrewarmed 优先从预热池取出可用连接。
controller/prewarm.go:98
↓ 1 callers
Method
dialOne
dialOne 拨号一个连接并加入空闲池。
controller/prewarm.go:71
↓ 1 callers
Function
ensurePrewarmPool
(addr string, desired int)
controller/prewarm.go:46
↓ 1 callers
Function
initPrewarm
initPrewarm 会为规则中的每个目标开启后台保温。
controller/prewarm.go:36
↓ 1 callers
Function
lazyRevalidate
不再单独提供显式 drop 接口,超时或拨号失败自动失效。 lazyRevalidate 在后台重新跑一次竞速,不打断现有请求;若发现更快线路则更新缓存。
controller/boost.go:63
↓ 1 callers
Function
loadBoostWinner
(ruleName string)
controller/boost.go:34
↓ 1 callers
Function
main
()
test/bench.py:221
↓ 1 callers
Function
parse_args
()
test/bench.py:203
↓ 1 callers
Function
percentiles
(values: List[float], ps=(50,90,95,99))
test/bench.py:134
↓ 1 callers
Function
print_header
()
test/bench.py:216
↓ 1 callers
Function
socks5_http_get
(timeout: float, phase: str)
test/bench.py:39
↓ 1 callers
Function
summarize
(results: List[Result])
test/bench.py:164
↓ 1 callers
Function
worker
(idx: int)
test/bench.py:150
Method
DialLatency
()
controller/direct.go:16
Function
TimeEncoder
(t time.Time, enc zapcore.PrimitiveArrayEncoder)
utils/log.go:76
Function
ZapErr
(err error)
utils/log.go:82
Function
ZapString
optional helpers for structured fields (used in some modules)
utils/log.go:81
Method
__init__
(self, ok: bool, error: Optional[str], connect_ms: float, first_byte_ms: float, total_ms: flo
test/bench.py:29
Function
init
()
utils/log.go:16
Function
init
()
config/setting.go:44
Function
main
()
run.go:13