# rust消息广播 **Repository Path**: zhenruyan/rustGroupMsg ## Basic Information - **Project Name**: rust消息广播 - **Description**: rust 写的消息分发 - - 入门rust瞎撸出来的 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2018-12-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` # rust 写的消息分发 - - 入门rust瞎撸出来的 ## 初始化 127.0.0.1:5001/init {"idlist":[1,2,3,4,5]} ## 状态 127.0.0.1:5001 127.0.0.1:5001/debug ## 新建队列 127.0.0.1:5001/del_queue 127.0.0.1:5001/add_queue {"id":1} ## 广播 127.0.0.1:5001/send_all_queue {"msg":"hello world"} ## 拉消息 127.0.0.1:5001/pull {"id":1} ## 推消息 127.0.0.1:5001/push {"id":2,"msg":"hello world"} ## 新建分组 127.0.0.1:5001/new_group {"group":"chat"} ## 删除分组 127.0.0.1:5001/remove_group {"group":"chat"} ## 组播 127.0.0.1:5001/send_group_message {"group":"chat","msg":"hello world"} ## 进入分组 127.0.0.1:5001/add_group_by_id {"group":"chat","id":3} ## 移出分组 127.0.0.1:5001/del_group_by_id {"group":"chat","id":1} ```