diff options
| author | 2023-12-18 02:32:31 +0800 | |
|---|---|---|
| committer | 2023-12-18 02:32:31 +0800 | |
| commit | 0c83593d99afdff01f96d304369156687069fc44 (patch) | |
| tree | bb116f69742a820bc32f9c8019accb639592762a | |
| parent | 211142f9f82a5c6a38c4b8a07473b17167321c12 (diff) | |
| download | infini-0c83593d99afdff01f96d304369156687069fc44.tar.gz infini-0c83593d99afdff01f96d304369156687069fc44.zip | |
feat(handler): add `HandlerLoadType` class
| -rw-r--r-- | src/infini/handler.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/infini/handler.py b/src/infini/handler.py index fcbf32f9..8406972b 100644 --- a/src/infini/handler.py +++ b/src/infini/handler.py @@ -6,9 +6,19 @@ """ from abc import ABCMeta, abstractmethod +from enum import Enum from .event import MatcherEvent, InfiniEvent -__all__ = ["Handler"] +__all__ = ["Handler", "HandlerLoadType"] + + +class HandlerLoadType(Enum): + """规则包加载类型。""" + + DIR = "dir" + NAME = "name" + FILE = "file" + CLASS = "class" class Handler: |
