add fastapi routes, adapters

This commit is contained in:
yanyongyu
2020-07-05 20:39:34 +08:00
parent 4d242875d2
commit ea21d6ffcc
9 changed files with 64 additions and 18 deletions

View File

@ -7,6 +7,9 @@ from ipaddress import IPv4Address
class BaseDriver(object):
def __init__(self):
raise NotImplementedError
@property
def server_app(self):
raise NotImplementedError
@ -25,3 +28,9 @@ class BaseDriver(object):
*args,
**kwargs):
raise NotImplementedError
async def _handle_http(self):
raise NotImplementedError
async def _handle_ws_reverse(self):
raise NotImplementedError