connect driver-adapter-matcher

This commit is contained in:
yanyongyu
2020-07-11 17:32:03 +08:00
parent ea21d6ffcc
commit d616290626
10 changed files with 280 additions and 20 deletions

View File

@ -4,10 +4,12 @@
from typing import Optional
from ipaddress import IPv4Address
from nonebot.config import Config
class BaseDriver(object):
def __init__(self):
def __init__(self, config: Config):
raise NotImplementedError
@property
@ -34,3 +36,6 @@ class BaseDriver(object):
async def _handle_ws_reverse(self):
raise NotImplementedError
async def _handle_http_api(self):
raise NotImplementedError