]> www.average.org Git - loctrkd.git/blobdiff - loctrkd/watch.py
protocols: make "interface" module
[loctrkd.git] / loctrkd / watch.py
index b2b5c063f25ccc6e8eebf0e6c2044afd0f18ed40..006ec06d18ab8505c5b712e891f03eb56184b0a2 100644 (file)
@@ -8,21 +8,12 @@ from typing import Any, cast, List
 import zmq
 
 from . import common
+from .protomodule import ProtoModule
 from .zmsg import Bcast
 
 log = getLogger("loctrkd/watch")
 
 
-class ProtoModule:
-    @staticmethod
-    def proto_handled(proto: str) -> bool:
-        ...
-
-    @staticmethod
-    def parse_message(packet: bytes, is_incoming: bool = True) -> Any:
-        ...
-
-
 pmods: List[ProtoModule] = []