12 2024 档案

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

点击右上角即可分享
微信分享提示