浏览代码

enable relevant hookspecs

Nick Sweeting 1 年之前
父节点
当前提交
7671813aa5
共有 1 个文件被更改,包括 14 次插入17 次删除
  1. 14 17
      archivebox/abx/archivebox/hookspec.py

+ 14 - 17
archivebox/abx/archivebox/hookspec.py

@@ -5,33 +5,30 @@ from typing import Dict, Any
 from .. import hookspec
 from .. import hookspec
 
 
 from .base_configset import BaseConfigSet
 from .base_configset import BaseConfigSet
-
-@hookspec
-def get_CONFIG() -> BaseConfigSet:
-    ...
+from .base_extractor import BaseExtractor
+from .base_searchbackend import BaseSearchBackend
 
 
 
 
 @hookspec
 @hookspec
-def get_EXTRACTORS():
+def get_CONFIG() -> Dict[str, BaseConfigSet]:
     return {}
     return {}
 
 
 @hookspec
 @hookspec
-def get_REPLAYERS():
+def get_EXTRACTORS() -> Dict[str, BaseExtractor]:
     return {}
     return {}
 
 
 @hookspec
 @hookspec
-def get_ADMINDATAVIEWS():
+def get_SEARCHBACKENDS() -> Dict[str, BaseSearchBackend]:
     return {}
     return {}
 
 
-@hookspec
-def get_QUEUES():
-    return {}
-
-@hookspec
-def get_SEARCHBACKENDS():
-    return {}
+# @hookspec
+# def get_REPLAYERS() -> Dict[str, BaseReplayer]:
+#     return {}
 
 
+# @hookspec
+# def get_ADMINDATAVIEWS():
+#     return {}
 
 
-@hookspec
-def extract(snapshot_id) -> Dict[str, Any]:
-    return {}
+# @hookspec
+# def get_QUEUES():
+#     return {}