Go to file
2023-08-05 10:41:12 +08:00
builtins ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
dependence ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
handler ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
override ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
plugin ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
services ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
sqlmodel ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
__init__.py ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
.gitignore separate core code 2023-07-31 22:10:37 +08:00
application.py ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
base_service.py ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
basemodel.py ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
config.py ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
error.py ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
LICENSE Initial commit 2023-07-31 20:34:34 +08:00
manager.py ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
ratelimiter.py ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00
README.md ♻️ Change to git submodule 2023-08-05 10:41:12 +08:00

core 目录说明

关于 Service

服务 Service 需定义在 services 文件夹下, 并继承 core.service.Service

每个 Service 都应包含 startstop 方法, 且这两个方法都为异步方法

from core.service import Service


class TestService(Service):
    def __init__(self):
        """do something"""

    async def start(self, *args, **kwargs):
        """do something"""

    async def stop(self, *args, **kwargs):
        """do something"""