mini.channels.msg_utils module

mini.channels.msg_utils.build_request_msg(cmd: int, send_serial: int, request: google.protobuf.message.Message) pccodemao_message_pb2.Message[source]
mini.channels.msg_utils.build_response_msg(cmd: int, send_serial: int, response: google.protobuf.message.Message) pccodemao_message_pb2.Message[source]
mini.channels.msg_utils.parse_msg(recv: str) pccodemao_message_pb2.Message[source]
mini.channels.msg_utils.parse_body_msg(recv: bytes, clazz: type) google.protobuf.message.Message[source]
mini.channels.msg_utils.base64_encode(b: bytes) str[source]
mini.channels.msg_utils.base64_decode(b: str) str[source]
mini.channels.msg_utils.coroutine(func)[source]
mini.channels.msg_utils.id_generator()[source]