config
HttpClientConfig 🔗
Bases: NamedTuple
HTTP 客户端配置
Source code in src/graia/ariadne/connection/config.py
29 30 31 32 33 |
|
host
class-attribute
instance-attribute
🔗
host: str = 'http://localhost:8080'
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
class-attribute
instance-attribute
🔗
host: str = 'http://localhost:8080'
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 🔗
config(
account: int, verify_key: str, *configs: Union[Type[U_Config], U_Config]
) -> List[U_Info]
生成 Ariadne 账号配置
Parameters:
-
account
(
int
) –账号
-
verify_key
(
str
) –mirai-api-http 使用的 VerifyKey
-
*configs
(
Union[Type[U_Config], U_Config]
) –配置, 为
HttpClientConfig
,WebsocketClientConfig
,WebsocketServerConfig
,HttpServerConfig
类或实例
Returns:
-
List[U_Info]
–List[U_Info]: 配置列表, 可直接传给
Ariadne
类
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 |
|