AdapterInfo
约 257 字小于 1 分钟
2026-04-26
Karin API Docs / AdapterInfo
接口: AdapterInfo
定义于: packages/core/src/types/adapter/info.ts:93
适配器基本信息
属性
address
address:
string
定义于: packages/core/src/types/adapter/info.ts:115
适配器通信地址
Examples
`http://127.0.0.1:7000``ws://127.0.0.1:7000/ws``grpc://127.0.0.1:7001``internal://127.0.0.1`communication
communication:
AdapterCommunication
定义于: packages/core/src/types/adapter/info.ts:107
适配器通信方式
connectTime
connectTime:
number
定义于: packages/core/src/types/adapter/info.ts:117
连接时间
index
index:
number
定义于: packages/core/src/types/adapter/info.ts:95
适配器索引 默认为-1 在注册适配器时会自动更改为对应的索引
name
name:
string
定义于: packages/core/src/types/adapter/info.ts:97
适配器名称 如lagrange-onebot
platform
platform:
AdapterPlatform
定义于: packages/core/src/types/adapter/info.ts:101
适配器平台
protocol
protocol:
AdapterProtocol
定义于: packages/core/src/types/adapter/info.ts:105
适配器协议实现 如gocq、napcat
secret
secret:
string|null
定义于: packages/core/src/types/adapter/info.ts:119
鉴权秘钥
standard
standard:
AdapterStandard
定义于: packages/core/src/types/adapter/info.ts:103
适配器使用的协议标准 如onebot11
version
version:
string
定义于: packages/core/src/types/adapter/info.ts:99
适配器版本
