外观
go_domain API
完整接口目录 · 多语言与兼容桥接用法 · 工具包下载
模块说明
text
Managed, single-connection domain for the pinned unchanged Go component1.
The plugin has no Stop contract: drain joins its whole subprocess. Candidate
validation never executes the binary. Accepted input is not world completion.
Host configuration seeds original storage only on first activation; the original
loader owns subsequent upgraded configuration in the installation data directory.SOURCES
python
SOURCES: dict[str, str]Go 组件依赖的源码标识,用于校验组件包的一致性。
PLUGIN_SOURCE_SHA256
python
PLUGIN_SOURCE_SHA256: strGo 插件源码的 SHA-256 摘要,用于校验组件包的完整性。
MAX_MESSAGE
python
MAX_MESSAGE = 1 << 20MAX_INIT
python
MAX_INIT = 34 << 20MAX_ID
python
MAX_ID = (1 << 53) - 1validate_package
python
def validate_package(root)SDK 说明:
text
Check the fixed source/build pins and packaged hashes without execution.validate_config
python
def validate_config(value)Domain
python
class DomainDomain.__init__
python
def __init__(self, root, peer)Domain.validate
python
async def validate(self, peer, body)Domain.activate
python
async def activate(self, peer, body)Domain.write
python
async def write(self, value)Domain.input
python
async def input(self, kind, **fields)Domain.apply
python
async def apply(self, event, *, epoch)Domain.event
python
async def event(self, peer, body)Domain.invoke
python
async def invoke(self, peer, body)Domain.read
python
async def read(self)Domain.receive
python
async def receive(self)Domain.command
python
async def command(self, request)Domain.supervise
python
async def supervise(self)Domain.drain
python
async def drain(self, peer, body)Domain.close
python
async def close(self)Domain.root
python
self.root公开实例属性,在 __init__ 中设置。
Domain.peer
python
self.peer公开实例属性,在 __init__ 中设置。
Domain.worker
python
self.worker公开实例属性,在 __init__ 中设置。
Domain.process
python
self.process公开实例属性,在 __init__ 中设置。
Domain.pump
python
self.pump公开实例属性,在 __init__、activate 中设置。
Domain.reader
python
self.reader公开实例属性,在 __init__ 中设置。
Domain.writer
python
self.writer公开实例属性,在 __init__ 中设置。
Domain.session
python
self.session公开实例属性,在 __init__、activate 中设置。
Domain.generation
python
self.generation公开实例属性,在 __init__、activate 中设置。
Domain.config
python
self.config公开实例属性,在 __init__、validate 中设置。
Domain.closed
python
self.closed公开实例属性,在 __init__、input、close 中设置。
run
python
async def run(root)