内核事件#
arkid.core.event
#
Event
#
__init__(self, tag, tenant, request=None, response=None, packages=[], data=None, uuid=None)
special
#
事件
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tag |
str |
事件类型唯一标识 |
required |
tenant |
Tenant |
租户 |
required |
request |
HttpRequest |
django http request |
None |
response |
HttpResponse |
django http response |
None |
packages |
list[str] |
插件package标识 |
[] |
data |
_type_ |
事件data |
None |
uuid |
str |
事件包含的request_uuid |
None |
EventType
#
__init__(self, tag, name, data_schema=None, result_schema=None, request_schema=None, response_schema=None, description='')
special
#
事件类型用于注册
注意
event request 切勿修改
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tag |
str |
事件类型唯一标识 |
required |
name |
str |
事件类型名字 |
required |
data_schema |
Schema |
输入data的Schema |
None |
result_schema |
Schema |
事件处理回调函数 return 结果 Schema |
None |
request_schema |
Schema |
django http request Schema |
None |
response_schema |
Schema |
django http response Schema |
None |
description |
str |
事件类型描述 |
'' |