1
0
forked from bot/app
LiteyukiBot/assets/rpc.html-Dj7i743Z.js

9 lines
5.1 KiB
JavaScript

import{_ as n,o as a,c as e,e as t}from"./app-BvUYPzLF.js";const s={},o=t(`<h1 id="liteyuki-comm-rpc" tabindex="-1"><a class="header-anchor" href="#liteyuki-comm-rpc"><span>liteyuki.comm.rpc</span></a></h1><p><strong>说明</strong>: 本模块用于实现RPC(基于IPC)通信</p><h3 id="class-rpc" tabindex="-1"><a class="header-anchor" href="#class-rpc"><span><em><strong>class</strong></em> <code>RPC</code></span></a></h3><h4 id="def-init-self-on-calling-on-calling-func-none" tabindex="-1"><a class="header-anchor" href="#def-init-self-on-calling-on-calling-func-none"><span><em><strong>def</strong></em> <code>__init__(self, on_calling: ON_CALLING_FUNC) -&gt; None</code></span></a></h4><details><summary><b>源代码</b> 或 <a href="https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/comm/rpc.py#L18" target="_blank">在GitHub上查看</a></summary><div class="language-python line-numbers-mode" data-ext="py" data-title="py"><pre class="language-python"><code><span class="token keyword">def</span> <span class="token function">__init__</span><span class="token punctuation">(</span>self<span class="token punctuation">,</span> on_calling<span class="token punctuation">:</span> ON_CALLING_FUNC<span class="token punctuation">)</span> <span class="token operator">-</span><span class="token operator">&gt;</span> <span class="token boolean">None</span><span class="token punctuation">:</span>
self<span class="token punctuation">.</span>on_calling <span class="token operator">=</span> on_calling
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div></div></div></details><h4 id="def-call-self-args-tuple-kwargs-dict-any" tabindex="-1"><a class="header-anchor" href="#def-call-self-args-tuple-kwargs-dict-any"><span><em><strong>def</strong></em> <code>call(self, args: tuple, kwargs: dict) -&gt; Any</code></span></a></h4><p><strong>说明</strong>: 调用</p><details><summary><b>源代码</b> 或 <a href="https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/comm/rpc.py#L21" target="_blank">在GitHub上查看</a></summary><div class="language-python line-numbers-mode" data-ext="py" data-title="py"><pre class="language-python"><code><span class="token keyword">def</span> <span class="token function">call</span><span class="token punctuation">(</span>self<span class="token punctuation">,</span> args<span class="token punctuation">:</span> <span class="token builtin">tuple</span><span class="token punctuation">,</span> kwargs<span class="token punctuation">:</span> <span class="token builtin">dict</span><span class="token punctuation">)</span> <span class="token operator">-</span><span class="token operator">&gt;</span> Any<span class="token punctuation">:</span>
<span class="token triple-quoted-string string">&quot;&quot;&quot;
调用
&quot;&quot;&quot;</span>
<span class="token keyword">return</span> self<span class="token punctuation">.</span>on_calling<span class="token punctuation">(</span>args<span class="token punctuation">,</span> kwargs<span class="token punctuation">)</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details>`,8),l=[o];function c(i,p){return a(),e("div",null,l)}const u=n(s,[["render",c],["__file","rpc.html.vue"]]),d=JSON.parse('{"path":"/dev/api/comm/rpc.html","title":"liteyuki.comm.rpc","lang":"zh-CN","frontmatter":{"title":"liteyuki.comm.rpc","lastUpdated":false,"description":"liteyuki.comm.rpc 说明: 本模块用于实现RPC(基于IPC)通信 class RPC def __init__(self, on_calling: ON_CALLING_FUNC) -> None 源代码 或 在GitHub上查看 def call(self, args: tuple, kwargs: dict) -> Any 说明:...","head":[["link",{"rel":"alternate","hreflang":"en-us","href":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/comm/rpc.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/comm/rpc.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"liteyuki.comm.rpc"}],["meta",{"property":"og:description","content":"liteyuki.comm.rpc 说明: 本模块用于实现RPC(基于IPC)通信 class RPC def __init__(self, on_calling: ON_CALLING_FUNC) -> None 源代码 或 在GitHub上查看 def call(self, args: tuple, kwargs: dict) -> Any 说明:..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.comm.rpc\\",\\"image\\":[\\"\\"],\\"dateModified\\":null,\\"author\\":[]}"]]},"headers":[{"level":3,"title":"class RPC","slug":"class-rpc","link":"#class-rpc","children":[]}],"git":{"createdTime":null,"updatedTime":null,"contributors":[]},"readingTime":{"minutes":0.37,"words":110},"filePathRelative":"dev/api/comm/rpc.md","autoDesc":true}');export{u as comp,d as data};