AdapterInfo
约 257 字小于 1 分钟
2025-10-13
Karin API Docs / AdapterInfo
接口: AdapterInfo
定义于: packages/core/src/types/adapter/info.ts:72
适配器基本信息
属性
address
address:
string
定义于: packages/core/src/types/adapter/info.ts:94
适配器通信地址
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:86
适配器通信方式
connectTime
connectTime:
number
定义于: packages/core/src/types/adapter/info.ts:96
连接时间
index
index:
number
定义于: packages/core/src/types/adapter/info.ts:74
适配器索引 默认为-1 在注册适配器时会自动更改为对应的索引
name
name:
string
定义于: packages/core/src/types/adapter/info.ts:76
适配器名称 如lagrange-onebot
platform
platform:
AdapterPlatform
定义于: packages/core/src/types/adapter/info.ts:80
适配器平台
protocol
protocol:
AdapterProtocol
定义于: packages/core/src/types/adapter/info.ts:84
适配器协议实现 如gocq、napcat
secret
secret:
string
|null
定义于: packages/core/src/types/adapter/info.ts:98
鉴权秘钥
standard
standard:
AdapterStandard
定义于: packages/core/src/types/adapter/info.ts:82
适配器使用的协议标准 如onebot11
version
version:
string
定义于: packages/core/src/types/adapter/info.ts:78
适配器版本