config
HttpClientConfig
🔗
Bases: NamedTuple
HTTP 客户端配置
Source code in src/graia/ariadne/connection/config.py
29 30 31 32 33 |
|
host = 'http://localhost:8080'
class-attribute
instance-attribute
🔗
mirai-api-http 的 Endpoint
HttpServerConfig
🔗
Bases: NamedTuple
HTTP 服务器配置
Source code in src/graia/ariadne/connection/config.py
36 37 38 39 40 41 42 43 |
|
WebsocketClientConfig
🔗
Bases: NamedTuple
Websocket 客户端配置
Source code in src/graia/ariadne/connection/config.py
11 12 13 14 15 |
|
host = 'http://localhost:8080'
class-attribute
instance-attribute
🔗
mirai-api-http 的 Endpoint
WebsocketServerConfig
🔗
Bases: NamedTuple
Websocket 服务器配置
Source code in src/graia/ariadne/connection/config.py
18 19 20 21 22 23 24 25 26 |
|
config(account, verify_key, *configs)
🔗
生成 Ariadne 账号配置
Parameters:
Name | Type | Description | Default |
---|---|---|---|
account
|
int
|
账号 |
required |
verify_key
|
str
|
mirai-api-http 使用的 VerifyKey |
required |
*configs
|
Union[Type[U_Config], U_Config]
|
配置, 为 |
()
|
Returns:
Type | Description |
---|---|
List[U_Info]
|
List[U_Info]: 配置列表, 可直接传给 |
Source code in src/graia/ariadne/connection/config.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|