2024-08-31 19:08:18 +08:00
<!DOCTYPE html>
< html lang = "en-US" dir = "ltr" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width,initial-scale=1" >
< title > liteyuki.core.manager | LiteyukiBot< / title >
< meta name = "description" content = "A high-performance, easy-to-use chatbot framework and application" >
2024-11-09 23:53:05 +08:00
< meta name = "generator" content = "VitePress v1.5.0" >
2024-11-16 02:21:14 +08:00
< link rel = "preload stylesheet" href = "/assets/style.ibT9l-Gp.css" as = "style" >
2024-11-09 23:53:05 +08:00
< link rel = "preload stylesheet" href = "/vp-icons.css" as = "style" >
2024-08-31 19:08:18 +08:00
2024-11-16 02:25:32 +08:00
< script type = "module" src = "/assets/app.BT9SExIC.js" > < / script >
2024-08-31 19:08:18 +08:00
< link rel = "preload" href = "/assets/inter-roman-latin.Di8DUHzh.woff2" as = "font" type = "font/woff2" crossorigin = "" >
2024-11-16 02:25:32 +08:00
< link rel = "modulepreload" href = "/assets/chunks/theme.DjavgrUf.js" >
2024-11-16 02:17:59 +08:00
< link rel = "modulepreload" href = "/assets/chunks/framework._avq4Ty7.js" >
< link rel = "modulepreload" href = "/assets/en_dev_api_core_manager.md.DY8pAztC.lean.js" >
2024-08-31 19:08:18 +08:00
< link rel = "icon" type = "image/x-icon" href = "favicon.ico" >
< link rel = "stylesheet" href = "https://fonts.font.im/css?family=Cousine:400,400i,700,700i|Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" >
< script id = "check-dark-mode" > ( ( ) => { const e = localStorage . getItem ( "vitepress-theme-appearance" ) || "auto" , a = window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches ; ( ! e || e === "auto" ? a : e === "dark" ) && document . documentElement . classList . add ( "dark" ) } ) ( ) ; < / script >
< script id = "check-mac-os" > document . documentElement . classList . toggle ( "mac" , /Mac|iPhone|iPod|iPad/i . test ( navigator . platform ) ) ; < / script >
< / head >
< body >
2024-11-16 02:21:14 +08:00
< div id = "app" > < div class = "Layout" data-v-2391887b data-v-cf959ac2 > <!-- [ --> <!-- ] --> <!-- [ --> < span tabindex = "-1" data-v-09f1bf64 > < / span > < a href = "#VPContent" class = "VPSkipLink visually-hidden" data-v-09f1bf64 > Skip to content < / a > <!-- ] --> <!-- --> < header class = "VPNav" data-v-cf959ac2 data-v-4a2d6202 > < div class = "VPNavBar" data-v-4a2d6202 data-v-8c2dd89c > < div class = "wrapper" data-v-8c2dd89c > < div class = "container" data-v-8c2dd89c > < div class = "title" data-v-8c2dd89c > < div class = "VPNavBarTitle has-sidebar" data-v-8c2dd89c data-v-60cf36d1 > < a class = "title" href = "/en/" data-v-60cf36d1 > <!-- [ --> <!-- ] --> <!-- [ --> <!-- [ --> <!-- [ --> < img class = "VPImage dark logo" src = "/liteyuki-dark.svg" alt = "LiteyukiBot Logo" data-v-e656d635 > <!-- ] --> <!-- [ --> < img class = "VPImage light logo" src = "/liteyuki.svg" alt = "LiteyukiBot Logo" data-v-e656d635 > <!-- ] --> <!-- ] --> <!-- ] --> < span data-v-60cf36d1 > LiteyukiBot< / span > <!-- [ --> <!-- ] --> < / a > < / div > < / div > < div class = "content" data-v-8c2dd89c > < div class = "content-body" data-v-8c2dd89c > <!-- [ --> <!-- ] --> < div class = "VPNavBarSearch search" data-v-8c2dd89c > <!-- [ --> <!-- --> < div id = "local-search" > < button type = "button" class = "DocSearch DocSearch-Button" aria-label = "Search" > < span class = "DocSearch-Button-Container" > < span class = "vp-icon DocSearch-Search-Icon" > < / span > < span class = "DocSearch-Button-Placeholder" > Search< / span > < / span > < span class = "DocSearch-Button-Keys" > < kbd class = "DocSearch-Button-Key" > < / kbd > < kbd class = "DocSearch-Button-Key" > K< / kbd > < / span > < / button > < / div > <!-- ] --> < / div > < nav aria-labelledby = "main-nav-aria-label" class = "VPNavBarMenu menu" data-v-8c2dd89c data-v-fb179ef2 > < span id = "main-nav-aria-label" class = "visually-hidden" data-v-fb179ef2 > Main Navigation < / span > <!-- [ --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/en/deploy/install.html" tabindex = "0" data-v-fb179ef2 data-v-f6113321 > <!-- [ --> < span data-v-f6113321 > Deploy< / span > <!-- ] --> < / a > <!-- ] --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/en/usage/basic.html" tabindex = "0" data-v-fb179ef2 data-v-f6113321 > <!-- [ --> < span data-v-f6113321 > Usage< / span > <!-- ] --> < / a > <!-- ] --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/en/store/resource.html" tabindex = "0" data-v-fb179ef2 data-v-f6113321 > <!-- [ --> < span data-v-f6113321 > Extension< / span > <!-- ] --> < / a > <!-- ] --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/en/dev/guide.html" tabindex = "0" data-v-fb179ef2 data-v-f6113321 > <!-- [ --> < span data-v-f6113321 > Develop< / span > <!-- ] --> < / a > <!-- ] --> <!-- ] --> < / nav > < div class = "VPFlyout VPNavBarTranslations translations" data-v-8c2dd89c data-v-7a36dbca data-v-32e61f0e > < button type = "button" class = "button" aria-haspopup = "true" aria-expanded = "false" aria-label = "Language" data-v-32e61f0e > < span class = "text" data-v-32e61f0e > < span class = "vpi-languages option-icon" data-v-32e61f0e > < / span > <!-- --> < span class = "vpi-chevron-down text-icon" data-v-32e61f0e > < / span > < / span > < / button > < div class = "menu" data-v-32e61f0e > < div class = "VPMenu" data-v-32e61f0e data-v-12ef594d > <!-- --> <!-- [ --> <!-- [ --> < div class = "items" data-v-7a36dbca > < p class = "title" data-v-7a36dbca > English< / p > <!-- [ --> < div class = "VPMenuLink" data-v-7a36dbca data-v-a334e8c3 > < a class = "VPLink link" href = "/dev/api/core/manager.html" data-v-a334e8c3 > <!-- [ --> < span data-v-a334e8c3 > 简体中文< / span > <!-- ] --> < / a > < / div > <!-- ] --> < / div > <!-- ] --> <!-- ] --> < / div > < / div > < / div > < div class = "VPNavBarAppearance appearance" data-v-8c2dd89c data-v-824ec8bd > < button class = "VPSwitch VPSwitchAppearance" type = "button" role = "switch" title aria-checked = "false" data-v-824ec8bd data-v-d8e7d9d8 data-v-61ab5455 > < span class = "check" data-v-61ab5455 > < span class = "icon" data-v-61ab5455 > <!-- [ --> < span class = "vpi-sun sun" data-v-d8e7d9d8 > < / span > < span class = "vpi-moon moon" data-v-d8e7d9d8 > < / span > <!-- ] --> < / span > < / span > < / button > < / div > < div class = "VPSocialLinks VPNavBarSocialLinks social-links" data-v-8c2dd89c data-v-b9e91830 data-v-0d378c5e > <!-- [ --> < a class = "VPSocialLink no-icon" href = "https://github.com/LiteyukiStudio/LiteyukiBot" aria-label = "github" target = "_blank" rel = "noopener" data-v-0d378c5e data-v-229dabda > < span class = "vpi-social-github" > < / span > < / a > < a class = "VPSocialLink no-icon" hre
2024-08-31 19:08:18 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .active < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > active< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .passive < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > passive< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .channel_deliver_active < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > channel_deliver_active< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .channel_deliver_passive < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > channel_deliver_passive< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .publish < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > publish< / span > < / span > < / code > < / pre > < / div > < / details > < h3 id = "class-processmanager" tabindex = "-1" > < em > < strong > class< / strong > < / em > < code > ProcessManager< / code > < a class = "header-anchor" href = "#class-processmanager" aria-label = "Permalink to "***class*** `ProcessManager`"" > < / a > < / h3 > < hr > < h4 id = "func-init-self-lifespan-lifespan" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > __init__(self, lifespan: Lifespan)< / code > < a class = "header-anchor" href = "#func-init-self-lifespan-lifespan" aria-label = "Permalink to "***func*** `__init__(self, lifespan: Lifespan)`"" > < / a > < / h4 > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L97" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > __init__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, lifespan: < / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Lifespan' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ):< / span > < / span >
2024-08-31 19:08:18 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .lifespan < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > lifespan< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .targets: dict[< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > , tuple[Callable, < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > tuple< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > , < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > dict< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ]] < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > {}< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes: dict[< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > , Process] < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > {}< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-start-all-self" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > start_all(self)< / code > < a class = "header-anchor" href = "#func-start-all-self" aria-label = "Permalink to "***func*** `start_all(self)`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 对外启动方法, 启动所有进程, 创建asyncio task< / p > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L142" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > start_all< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self):< / span > < / span >
2024-09-01 13:25:37 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > for< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .targets:< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > logger.debug(< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Starting process < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > threading.Thread(< / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > target< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ._run_process, < / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > args< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (name,), < / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > daemon< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > True< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ).start()< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)< / code > < a class = "header-anchor" href = "#func-add-target-self-name-str-target-target-func-args-tuple-kwargs-none" aria-label = "Permalink to "***func*** `add_target(self, name: str, target: TARGET_FUNC, args: tuple = (), kwargs = None)`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 添加进程< / p > < p > < strong > Arguments< / strong > :< / p > < blockquote > < ul > < li > name: 进程名,用于获取和唯一标识< / li > < li > target: 进程函数< / li > < li > args: 进程函数参数< / li > < li > kwargs: 进程函数关键字参数, 通常会默认传入chan_active和chan_passive< / li > < / ul > < / blockquote > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L154" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > add_target< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, name: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > , target: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > TARGET_FUNC< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > , args: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > tuple< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (), kwargs< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > None< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ):< / span > < / span >
2024-08-31 19:08:18 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > kwargs < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > is< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > None< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > kwargs < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > {}< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > chan_active: Channel < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > Channel(< / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > name< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > -active' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > chan_passive: Channel < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > Channel(< / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > name< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > -passive' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > channel_deliver < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ChannelDeliver(< / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > active< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > chan_active, < / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > passive< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > chan_passive, < / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > channel_deliver_active< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > channel_deliver_active_channel, < / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > channel_deliver_passive< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > channel_deliver_passive_channel, < / span > < span style = "--shiki-light:#E36209;--shiki-dark:#FFAB70;" > publish< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > publish_channel)< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .targets[name] < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (_delivery_channel_wrapper, (target, channel_deliver, shared_memory, < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > *< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > args), kwargs)< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-join-all-self" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > join_all(self)< / code > < a class = "header-anchor" href = "#func-join-all-self" aria-label = "Permalink to "***func*** `join_all(self)`"" > < / a > < / h4 > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L183" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > join_all< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self):< / span > < / span >
2024-08-31 19:08:18 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > for< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name, process < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .targets:< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > process.join()< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-terminate-self-name-str" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > terminate(self, name: str)< / code > < a class = "header-anchor" href = "#func-terminate-self-name-str" aria-label = "Permalink to "***func*** `terminate(self, name: str)`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 终止进程并从进程字典中删除< / p > < p > < strong > Arguments< / strong > :< / p > < blockquote > < ul > < li > name:< / li > < / ul > < / blockquote > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L187" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > terminate< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, name: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ):< / span > < / span >
2024-08-31 19:08:18 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > not< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes:< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > logger.warning(< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Process < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > not found.' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > process < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes[name]< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > process.terminate()< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > process.join(< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > TIMEOUT< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > process.is_alive():< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > process.kill()< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > logger.success(< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Process < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > terminated.' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-terminate-all-self" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > terminate_all(self)< / code > < a class = "header-anchor" href = "#func-terminate-all-self" aria-label = "Permalink to "***func*** `terminate_all(self)`"" > < / a > < / h4 > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L206" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > terminate_all< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self):< / span > < / span >
2024-08-31 19:08:18 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > for< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .targets:< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .terminate(name)< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-is-process-alive-self-name-str-bool" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > is_process_alive(self, name: str) -> bool< / code > < a class = "header-anchor" href = "#func-is-process-alive-self-name-str-bool" aria-label = "Permalink to "***func*** `is_process_alive(self, name: str) -> bool`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 检查进程是否存活< / p > < p > < strong > Arguments< / strong > :< / p > < blockquote > < ul > < li > name:< / li > < / ul > < / blockquote > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L210" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > is_process_alive< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, name: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ) -> < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > bool< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
2024-08-31 19:08:18 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > not< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .targets:< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > logger.warning(< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Process < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > not found.' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span >
2024-10-19 21:11:43 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes[name].is_alive()< / span > < / span > < / code > < / pre > < / div > < / details > < h3 id = "class-subprocessmanager" tabindex = "-1" > < em > < strong > class< / strong > < / em > < code > _SubProcessManager< / code > < a class = "header-anchor" href = "#class-subprocessmanager" aria-label = "Permalink to "***class*** `_SubProcessManager`"" > < / a > < / h3 > < hr > < h4 id = "func-init-self" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > __init__(self)< / code > < a class = "header-anchor" href = "#func-init-self" aria-label = "Permalink to "***func*** `__init__(self)`"" > < / a > < / h4 > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L233" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > __init__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self):< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes: dict[< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > , SubProcess] < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > {}< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-add-self-name-str-func-processfunctype-args-kwargs" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > add(self, name: str, func: ProcessFuncType, *args, **kwargs)< / code > < a class = "header-anchor" href = "#func-add-self-name-str-func-processfunctype-args-kwargs" aria-label = "Permalink to "***func*** `add(self, name: str, func: ProcessFuncType, *args, **kwargs)`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 添加子进程< / p > < p > < strong > Arguments< / strong > :< / p > < blockquote > < ul > < li > func: 子进程函数< / li > < li > name: 子进程名称< / li > < li > args: 子进程函数参数< / li > < li > kwargs: 子进程函数关键字参数< / li > < / ul > < / blockquote > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L237" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > add< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, name: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > , func: ProcessFuncType, < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > *< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > args, < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > **< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > kwargs):< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes[name] < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > SubProcess(name, func, < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > *< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > args, < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > **< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > kwargs)< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-start-self-name-str" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > start(self, name: str)< / code > < a class = "header-anchor" href = "#func-start-self-name-str" aria-label = "Permalink to "***func*** `start(self, name: str)`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 启动指定子进程< / p > < p > < strong > Arguments< / strong > :< / p > < blockquote > < ul > < li > name: 子进程名称< / li > < / ul > < / blockquote > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L249" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > start< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, name: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ):< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > not< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes:< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > raise< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > KeyError< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Process < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > not found.' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span >
2024-10-19 21:11:43 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes[name].start()< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-start-all-self-1" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > start_all(self)< / code > < a class = "header-anchor" href = "#func-start-all-self-1" aria-label = "Permalink to "***func*** `start_all(self)`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 启动所有子进程< / p > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L260" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > start_all< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self):< / span > < / span >
2024-10-13 02:52:22 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > for< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name, process < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes.items():< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > process.start()< / span > < / span >
2024-10-19 21:11:43 +08:00
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > logger.debug(< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Starting process < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-terminate-self-name-str-1" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > terminate(self, name: str)< / code > < a class = "header-anchor" href = "#func-terminate-self-name-str-1" aria-label = "Permalink to "***func*** `terminate(self, name: str)`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 终止指定子进程< / p > < p > < strong > Arguments< / strong > :< / p > < blockquote > < ul > < li > name: 子进程名称< / li > < / ul > < / blockquote > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L268" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > terminate< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, name: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ):< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > not< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes:< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > raise< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > KeyError< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Process < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > not found.' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes[name].terminate()< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-terminate-all-self-1" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > terminate_all(self)< / code > < a class = "header-anchor" href = "#func-terminate-all-self-1" aria-label = "Permalink to "***func*** `terminate_all(self)`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 终止所有子进程< / p > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L279" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > terminate_all< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self):< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > for< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name, process < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > in< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes.items():< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > process.terminate()< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > logger.debug(< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Terminating process < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > name< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span > < / code > < / pre > < / div > < / details > < hr > < h4 id = "func-get-process-self-name-str-subprocess-none" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > get_process(self, name: str) -> SubProcess | None< / code > < a class = "header-anchor" href = "#func-get-process-self-name-str-subprocess-none" aria-label = "Permalink to "***func*** `get_process(self, name: str) -> SubProcess | None`"" > < / a > < / h4 > < p > < strong > Description< / strong > : 获取指定子进程< / p > < p > < strong > Arguments< / strong > :< / p > < blockquote > < ul > < li > name: 子进程名称< / li > < / ul > < / blockquote > < details > < summary > < b > Source code< / b > or < a href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py#L287" target = "_blank" > View on GitHub< / a > < / summary > < div class = "language-python vp-adaptive-theme" > < button title = "Copy Code" class = "copy" > < / button > < span class = "lang" > python< / span > < pre class = "shiki shiki-themes github-light github-dark vp-code" tabindex = "0" > < code > < span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#6F42C1;--shiki-dark:#B392F0;" > get_process< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, name: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ) -> SubProcess < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > |< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > None< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
2024-11-16 02:21:14 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .processes.get(name, < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > None< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span > < / code > < / pre > < / div > < / details > < / div > < / div > < / main > < footer class = "VPDocFooter" data-v-92d339c1 data-v-d71d06df > <!-- [ --> <!-- ] --> < div class = "edit-info" data-v-d71d06df > < div class = "edit-link" data-v-d71d06df > < a class = "VPLink link vp-external-link-icon no-icon edit-link-button" href = "https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/core/manager.py" target = "_blank" rel = "noreferrer" data-v-d71d06df > <!-- [ --> < span class = "vpi-square-pen edit-link-icon" data-v-d71d06df > < / span > Edit this page on GitHub<!-- ] --> < / a > < / div > < div class = "last-updated" data-v-d71d06df > < p class = "VPLastUpdated" data-v-d71d06df data-v-2530b5c9 > Last updated: < time datetime = "2024-08-31T10:57:48.000Z" data-v-2530b5c9 > < / time > < / p > < / div > < / div > < nav class = "prev-next" aria-labelledby = "doc-footer-aria-label" data-v-d71d06df > < span class = "visually-hidden" id = "doc-footer-aria-label" data-v-d71d06df > Pager< / span > < div class = "pager" data-v-d71d06df > < a class = "VPLink link pager-link prev" href = "/en/dev/api/core/" data-v-d71d06df > <!-- [ --> < span class = "desc" data-v-d71d06df > Prev Page< / span > < span class = "title" data-v-d71d06df > liteyuki.core< / span > <!-- ] --> < / a > < / div > < div class = "pager" data-v-d71d06df > < a class = "VPLink link pager-link next" href = "/en/dev/api/dev/index.html" data-v-d71d06df > <!-- [ --> < span class = "desc" data-v-d71d06df > Next Page< / span > < span class = "title" data-v-d71d06df > liteyuki.dev< / span > <!-- ] --> < / a > < / div > < / nav > < / footer > <!-- [ --> <!-- ] --> < / div > < / div > < / div > <!-- [ --> <!-- ] --> < / div > < / div > < footer class = "VPFooter has-sidebar" data-v-cf959ac2 data-v-2c1ead0b > < div class = "container" data-v-2c1ead0b > < p class = "message" data-v-2c1ead0b > Documentation built with < a href = "https://vitepress.dev/" > VitePress< / a > | API references generated by < a href = "https://github.com/LiteyukiStudio/litedoc" > litedoc< / a > < / p > < p class = "copyright" data-v-2c1ead0b > Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved< / p > < / div > < / footer > <!-- [ --> <!-- ] --> < / div > < / div >
2024-11-16 02:25:32 +08:00
< script > w i n d o w . _ _ V P _ H A S H _ M A P _ _ = J S O N . p a r s e ( " { \ " d e p l o y _ c o n f i g . m d \ " : \ " 1 _ C Q 0 F b K \ " , \ " d e p l o y _ f a n d q . m d \ " : \ " B P l e y t o W \ " , \ " d e p l o y _ i n s t a l l . m d \ " : \ " S k 9 e e h U 9 \ " , \ " d e v _ a p i _ b o t _ i n d e x . m d \ " : \ " B i 6 7 4 f g O \ " , \ " d e v _ a p i _ b o t _ l i f e s p a n . m d \ " : \ " 2 z K 9 0 6 g E \ " , \ " d e v _ a p i _ c o m m _ c h a n n e l . m d \ " : \ " 2 k L 8 3 7 e w \ " , \ " d e v _ a p i _ c o m m _ e v e n t . m d \ " : \ " B U 5 q 7 K 5 I \ " , \ " d e v _ a p i _ c o m m _ i n d e x . m d \ " : \ " B Q 4 C Z L q P \ " , \ " d e v _ a p i _ c o m m _ s t o r a g e . m d \ " : \ " D q J 8 a V q B \ " , \ " d e v _ a p i _ c o n f i g . m d \ " : \ " B F 9 Z W J M D \ " , \ " d e v _ a p i _ c o r e _ i n d e x . m d \ " : \ " C 7 - m Y c F b \ " , \ " d e v _ a p i _ c o r e _ m a n a g e r . m d \ " : \ " D - 4 6 E j 1 L \ " , \ " d e v _ a p i _ d e v _ i n d e x . m d \ " : \ " C - Z 4 j V 0 w \ " , \ " d e v _ a p i _ d e v _ o b s e r v e r . m d \ " : \ " C 8 n 3 K G B - \ " , \ " d e v _ a p i _ d e v _ p l u g i n . m d \ " : \ " k u S 0 l 6 X 3 \ " , \ " d e v _ a p i _ e x c e p t i o n . m d \ " : \ " B 1 Z N v i - 7 \ " , \ " d e v _ a p i _ i n d e x . m d \ " : \ " D C S H y Q N H \ " , \ " d e v _ a p i _ l o g . m d \ " : \ " C h t 1 l - z 0 \ " , \ " d e v _ a p i _ p l u g i n _ i n d e x . m d \ " : \ " O b 9 c T 1 T w \ " , \ " d e v _ a p i _ p l u g i n _ l o a d . m d \ " : \ " B 8 T U s 3 5 a \ " , \ " d e v _ a p i _ p l u g i n _ m a n a g e r . m d \ " : \ " C V _ E Y - n _ \ " , \ " d e v _ a p i _ p l u g i n _ m o d e l . m d \ " : \ " B 6 z U T g y K \ " , \ " d e v _ a p i _ p l u g i n s _ i n d e x . m d \ " : \ " B J a F 6 G J o \ " , \ " d e v _ a p i _ p l u g i n s _ l i t e e c h o . m d \ " : \ " 0 o l L W - g F \ " , \ " d e v _ a p i _ p l u g i n s _ p l u g i n _ l o a d e r _ i n d e x . m d \ " : \ " B k _ J M v R 5 \ " , \ " d e v _ a p i _ s e s s i o n _ e v e n t . m d \ " : \ " e o I R Q P S p \ " , \ " d e v _ a p i _ s e s s i o n _ i n d e x . m d \ " : \ " B B 5 r w U q h \ " , \ " d e v _ a p i _ s e s s i o n _ m a t c h e r . m d \ " : \ " D Y 0 5 _ E e t \ " , \ " d e v _ a p i _ s e s s i o n _ m e s s a g e _ s e g m e n t s . m d \ " : \ " 0 b e Z i w P d \ " , \ " d e v _ a p i _ s e s s i o n _ m o d e l s . m d \ " : \ " J q 2 l U C 1 f \ " , \ " d e v _ a p i _ s e s s i o n _ o n . m d \ " : \ " C l G 5 j u p L \ " , \ " d e v _ a p i _ s e s s i o n _ r u l e . m d \ " : \ " J l r 6 f W c z \ " , \ " d e v _ a p i _ u t i l s . m d \ " : \ " B C P R 7 M 6 j \ " , \ " d e v _ b e s t _ p r a c t i c e s . m d \ " : \ " C y m r t 9 F M \ " , \ " d e v _ c o m m . m d \ " : \ " B d U 9 h 7 0 O \ " , \ " d e v _ g u i d e . m d \ " : \ " C K J g e 6 A v \ " , \ " d e v _ l y f u n c . m d \ " : \ " C T y K Z z I v \ " , \ " d e v _ p l u g i n . m d \ " : \ " C w 4 j m M 1 r \ " , \ " d e v _ r e s o u r c e . m d \ " : \ " D H a l i A i c \ " , \ " e n _ d e p l o y _ c o n f i g . m d \ " : \ " B Q n 5 E 2 B j \ " , \ " e n _ d e p l o y _ f a n d q . m d \ " : \ " B r j s x n A p \ " , \ " e n _ d e p l o y _ i n s t a l l . m d \ " : \ " Y W J C b r Q 9 \ " , \ " e n _ d e v _ a p i _ b o t _ i n d e x . m d \ " : \ " D 7 p B X y x E \ " , \ " e n _ d e v _ a p i _ b o t _ l i f e s p a n . m d \ " : \ " C B 0 l l I 1 b \ " , \ " e n _ d e v _ a p i _ c o m m _ c h a n n e l . m d \ " : \ " B E D K O Q o u \ " , \ " e n _ d e v _ a p i _ c o m m _ e v e n t . m d \ " : \ " D Z F P 2 X d R \ " , \ " e n _ d e v _ a p i _ c o m m _ i n d e x . m d \ " : \ " f m 8 _ o 3 6 k \ " , \ " e n _ d e v _ a p i _ c o m m _ s t o r a g e . m d \ " : \ " C r d o T 2 R t \ " , \ " e n _ d e v _ a p i _ c o n f i g . m d \ " : \ " D X v P Y 7 q 0 \ " , \ " e n _ d e v _ a p i _ c o r e _ i n d e x . m d \ " : \ " B 8 Y w t i b J \ " , \ " e n _ d e v _ a p i _ c o r e _ m a n a g e r . m d \ " : \ " D Y 8 p A z t C \ " , \ " e n _ d e v _ a p i _ d e v _ i n d e x . m d \ " : \ " B s v L s b b 9 \ " , \ " e n _ d e v _ a p i _ d e v _ o b s e r v e r . m d \ " : \ " Z 8 J L V w 4 8 \ " , \ " e n _ d e v _ a p i _ d e v _ p l u g i n . m d \ " : \ " B 4 Y G l v i 7 \ " , \ " e n _ d e v _ a p i _ e x c e p t i o n . m d \ " : \ " B i 5 k Z E 7 B \ " , \ " e n _ d e v _ a p i _ i n d e x . m d \ " : \ " B R w W n J j T \ " , \ " e n _ d e v _ a p i _ l o g . m d \ " : \ " C Y l Q g v c 9 \ " , \ " e n _ d e v _ a p i _ p l u g i n _ i n d e x . m d \ " : \ " D M M L x c g g \ " , \ " e n _ d e v _ a p i _ p l u g i n _ l o a d . m d \ " : \ " D B I 0 e 8 u W \ " , \ " e n _ d e v _ a p i _ p l u g i n _ m a n a g e r . m d \ " : \ " Y u R O J t z 4 \ " , \ " e n _ d e v _ a p i _ p l u g i n _ m o d e l . m d \ " : \ " D z k L t d g t \ " , \ " e n _ d e v _ a p i _ p l u g i n s _ i n d e x . m d \ " : \ " C c w D i D 2 t \ " , \ " e n _ d e v _ a p i _ p l u g i n s _ l i t e e c h o . m d \ " : \ " X c P v 4 e p x \ " , \ " e n _ d e v _ a p i _ p l u g i n s _ p l u g i n _ l o a d e r _ i n d e x . m d \ " : \ " D f U L X U O M \ " , \ " e n _ d e v _ a p i _ s e s s i o n _ e v e n t . m d \ " : \ " C 6 8 7 3 9 M u \ " , \ " e n _ d e v _ a p i _ s e s s i o n _ i n d e x . m d \ " : \ " D l O j e Q _ f \ " , \ " e n _ d e v _ a p i _ s e s s i o n _ m a t c h e r . m d \ " : \ " D s d k m 0 6 f \ " , \ " e n _ d e v _ a p i _ s e s s i o n _ m e s s a g e _ s e g m e n t s . m d \ " : \ " C 4 0 m p a 6 j \ " , \ " e n _ d e v _ a p i _ s e s s i o n _ m o d e l s . m d \ " : \ " 5 k x E 3 5 _ Q \ " , \ " e n _ d e v _ a p i _ s e s s i o n _ o n . m d \ " : \ " C F 0 R X j 7 a \ " , \ " e n _ d e v _ a p i _ s e s s i o n _ r u l e . m d \ " : \ " e 2 9 t - o 4 8 \ " , \ " e n _ d e v _ a p i _ u t i l s . m d \ " : \ " I x F _ Q K M D \ " , \ " e n _ d e v _ b e s t _ p r a c t i c e s . m d \ " : \ " B L 1 n Z 6 w X \ " , \ " e n _ d e v _ c o m m . m d \ " : \ " B D 3 5 _ P c 4 \ " , \ " e n _ d e v _ g u i d e . m d \ " : \ " C a o u l G 2 S \ " , \ " e n _ d e v _ l y f u n c . m d \ " : \ " C 0 J 7 k 9 S - \ " , \ " e n _ d e v _ p l u g i n . m d \ " : \ " C Z 1 f Z O S s \ " , \ " e n _ d e v _ r e s o u r c e . m d \ " : \ " g b Y l 0 2 _ m \ " , \ " e n _ i n d e x . m d \ " : \ " B 7 v J e P R Y \ " , \ " e n _ s t o r e _ p l u g i n . m d \ " : \ " C K M t d 2 6 v \ " , \ " e n _ s t o r e _ r e s o u r c e . m d \ " : \ " B 0 j z M l O l \ " , \ " e n _ u s a g e _ a g r e e m e n t . m d \ " : \ " D B - D F 9 k 9 \ " , \ " e n _ u s a g e _ b a s i c . m d \ " : \ " C q X C U H o n \ " , \ " e n _ u s a g e _ e x t r a . m d \ " : \ " N c w X X 0 c F \ " , \ " i n d e x . m d \ " : \ " D H O h f N p J \ " , \ " s t o r e _ p l u g i n . m d \ " : \ " B G - h P X 5 4 \ " , \ " s t o r e _ r e s o u r c e . m d \ " : \ " D x m w B n W 7 \ " , \ " u s a g e _ a g r e e m e n t . m d \ " : \ " D g I D C _ u 9 \ " , \ " u s a g e _ b a s i c . m d \ " : \ " D 0 k l 3 g m 6 \ " , \ " u s a g e _ e x t r a . m d \ " : \ " C s R U q 0 w h \ " } " ) ; f u n c t i o n d e s e r i a l i z e F u n c t i o n s ( r ) { r e t u r n A r r a y . i s A r r a y ( r ) ? r . m a p ( d e s e r i a l i z e F u n c t i o n s ) : t y p e o f r = = " o b j e c t " & & r ! = = n u l l ? O b j e c t . k e y s ( r ) . r e d u c e ( ( t , n ) = > ( t [ n ] = d e s e r i a l i z e F u n c t i o n s ( r [ n ] ) , t ) , { } ) : t y p e o f r = = " s t r i n g " & & r . s t a r t s W i t h ( " _ v p - f n _ " ) ? n e w F u n c t i o n ( ` r e t u r n $ { r . s l i c e ( 7 ) } ` ) ( ) : r } ; w i n d o w . _ _ V P _ S I T E _ D A T A _ _ = d e s e r i a l i z e F u n c t i o n s ( J S O N . p a r s e ( " { \ " l a n g \ " : \ " e n - U S \ " , \ " d i r \ " : \ " l t r \ " , \ " t i t l e \ " : \ " V i t e P r e s s \ " , \ " d e s c r i p t i o n \ " : \ " A V i t e P r e s s s i t e \ " , \ " b a s e \ " : \ " / \ " , \ " h e a d \ " : [ ] , \ " r o u t e r \ " : { \ " p r e f e t c h L i n k s \ " : t r u e } , \
2024-08-31 19:08:18 +08:00
< / body >
< / html >