12 2024 档案
摘要:使用mosquitto 通过将日志发布到topic 配置文件 mosquitto.conf log_type all log_dest topic $SYS/broker/log/ python 接收消息回调函数 pattern = "New client connected from (.*?)
阅读全文
摘要:def register_redis(app: FastAPI) -> None: """ 把redis挂载到app对象上面 :param app: :return: """ @app.on_event('startup') async def startup_event(): """ 获取链接 :
阅读全文