X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fmsgbase.py;h=25e8c8097a3c111de18418f1f39735cef402debc;hp=a1054146071c05d8379d5ec5eca6730f5165c049;hb=0f98af53b320c8244b58d0d8751e28e157949e8e;hpb=f27c79b67671934005fa1691158c363e2b686e77 diff --git a/osm_nbi/msgbase.py b/osm_nbi/msgbase.py index a105414..25e8c80 100644 --- a/osm_nbi/msgbase.py +++ b/osm_nbi/msgbase.py @@ -1,4 +1,5 @@ +import asyncio from http import HTTPStatus __author__ = "Alfonso Tierno " @@ -30,12 +31,17 @@ class MsgBase(object): def connect(self, config): pass - def write(self, msg): + def disconnect(self): pass - def read(self): + def write(self, topic, key, msg): pass - def disconnect(self): + def read(self, topic): pass + async def aiowrite(self, topic, key, msg, loop): + pass + + async def aioread(self, topic, loop): + pass