mini.channels.msg_utils module

mini.channels.msg_utils.build_request_msg(cmd: int, send_serial: int, request: Message) Message[源代码]
mini.channels.msg_utils.build_response_msg(cmd: int, send_serial: int, response: Message) Message[源代码]
mini.channels.msg_utils.parse_msg(recv: str) Message[源代码]
mini.channels.msg_utils.parse_body_msg(recv: bytes, clazz: type) Message[源代码]
mini.channels.msg_utils.base64_encode(b: bytes) str[源代码]
mini.channels.msg_utils.base64_decode(b: str) str[源代码]
mini.channels.msg_utils.coroutine(func)[源代码]
mini.channels.msg_utils.id_generator()[源代码]