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

9 lines
5.0 KiB
JavaScript

import{_ as e,o as n,c as a,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>Description</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>Source code</b> or <a href="https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/comm/rpc.py#L18" target="_blank">View on 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>Description</strong>: 调用</p><details><summary><b>Source code</b> or <a href="https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/comm/rpc.py#L21" target="_blank">View on 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),c=[o];function i(l,p){return n(),a("div",null,c)}const u=e(s,[["render",i],["__file","rpc.html.vue"]]),d=JSON.parse('{"path":"/en/dev/api/comm/rpc.html","title":"liteyuki.comm.rpc","lang":"en-US","frontmatter":{"title":"liteyuki.comm.rpc","lastUpdated":false,"description":"liteyuki.comm.rpc Description: 本模块用于实现RPC(基于IPC)通信 class RPC def __init__(self, on_calling: ON_CALLING_FUNC) -> None Source code or View on GitHub def call(self, args: tuple, kw...","head":[["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/comm/rpc.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/en/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 Description: 本模块用于实现RPC(基于IPC)通信 class RPC def __init__(self, on_calling: ON_CALLING_FUNC) -> None Source code or View on GitHub def call(self, args: tuple, kw..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["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.34,"words":102},"filePathRelative":"en/dev/api/comm/rpc.md","autoDesc":true}');export{u as comp,d as data};