X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=loctrkd%2Fqry.py;h=fc647c74c687b840d9fe9d2d63321d23f7b43c0f;hb=6eff65f7b03bc66a479df0fd694250e1e0b7c5ae;hp=650830e5fc4c57d90ff113ae42a5bcbeefa9ff18;hpb=a99136725dee12c541e9d866632ea9643005ba25;p=loctrkd.git diff --git a/loctrkd/qry.py b/loctrkd/qry.py index 650830e..fc647c7 100644 --- a/loctrkd/qry.py +++ b/loctrkd/qry.py @@ -10,20 +10,11 @@ from sys import argv from typing import Any, cast, List, Tuple from . import common +from .protomodule import ProtoModule log = getLogger("loctrkd/qry") -class ProtoModule: - @staticmethod - def proto_handled(proto: str) -> bool: - ... - - @staticmethod - def parse_message(packet: bytes, is_incoming: bool = True) -> Any: - ... - - pmods: List[ProtoModule] = [] @@ -33,7 +24,7 @@ def main( global pmods pmods = [ cast(ProtoModule, import_module("." + modnm, __package__)) - for modnm in conf.get("collector", "protocols").split(",") + for modnm in conf.get("common", "protocols").split(",") ] db = connect(conf.get("storage", "dbfn")) c = db.cursor()