aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/infini/handler.py12
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: