{"id":19749297,"url":"https://github.com/sipt/gotling","last_synced_at":"2025-07-08T10:05:49.897Z","repository":{"id":57523517,"uuid":"104083094","full_name":"sipt/Gotling","owner":"sipt","description":"Barrage (Go)","archived":false,"fork":false,"pushed_at":"2017-12-28T03:29:16.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T08:22:16.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sipt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-19T14:06:58.000Z","updated_at":"2017-09-21T09:45:53.000Z","dependencies_parsed_at":"2022-08-28T11:12:22.263Z","dependency_job_id":null,"html_url":"https://github.com/sipt/Gotling","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sipt/Gotling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipt%2FGotling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipt%2FGotling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipt%2FGotling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipt%2FGotling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sipt","download_url":"https://codeload.github.com/sipt/Gotling/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sipt%2FGotling/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264247693,"owners_count":23579053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T02:25:57.572Z","updated_at":"2025-07-08T10:05:49.837Z","avatar_url":"https://github.com/sipt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gotling\n基于UDP传输协议的消息分发系统（UDP练习）\n## 介绍\nUDP优点小而快，没有拥塞控制，不会因网络状况降低服务器的发送能力。\n在这里基于UDP完成消息的群发功能。\n## 使用\n客户端和服务端分别在`client`和`server`目录下。（初版功能还比较残缺）\n### Server\nserver启动参数\n\u003e `port` server的监听端口\n\nserver使用\n```\n➜ checkin //创建room\nroomID: 130780276472156160\n\n➜ rooms //列出room的列表\n130780276472156160\n130780290527268864\n\n➜ room 130780276472156160 //显示指定room下的users\nuser list:\n130769265472049152\n130769494896283648\n130769597438627840\n130769633933266944\n130769650605625344\n130769218000916480\n```\n### Client\nclient启动参数\n\u003e `ip` 服务器ip\n\u003e `sport` server的端口\n\u003e `cport` client的本地端口\nclient使用\n```\nGotaling [130791658546532352]: // [useid]\n请输入昵称：\n➜ sipt //暂时还没有什么用，可以随便输\n\n➜ into 130792013070077952 //进入房间\n\n[130792013070077952]➜ 这是一条测试数据 //发送数据，在服务器中同一个房间内注册的用户都会收到\n\n➜ out //退出房间，以后房间内的消息不会再收到\n\n➜\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsipt%2Fgotling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsipt%2Fgotling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsipt%2Fgotling/lists"}