{"id":37096960,"url":"https://github.com/pengzj/swift","last_synced_at":"2026-01-14T11:55:43.220Z","repository":{"id":57523554,"uuid":"106689842","full_name":"pengzj/swift","owner":"pengzj","description":"A game server for Golang","archived":false,"fork":false,"pushed_at":"2017-12-18T03:05:05.000Z","size":65,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T03:34:09.421Z","etag":null,"topics":["game-server","go","server"],"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/pengzj.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-10-12T12:28:24.000Z","updated_at":"2019-10-08T02:54:43.000Z","dependencies_parsed_at":"2022-08-28T11:12:35.455Z","dependency_job_id":null,"html_url":"https://github.com/pengzj/swift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pengzj/swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengzj%2Fswift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengzj%2Fswift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengzj%2Fswift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengzj%2Fswift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pengzj","download_url":"https://codeload.github.com/pengzj/swift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pengzj%2Fswift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["game-server","go","server"],"created_at":"2026-01-14T11:55:42.524Z","updated_at":"2026-01-14T11:55:43.212Z","avatar_url":"https://github.com/pengzj.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift\nSwift is an easy to use, fast, distributed, supporting multi process  multi process game server framework written by Golang.  \n\n# warning\n**This framework is under development, so please don't try it at the moment.**\n\n\n# how to use\n````\nimport (\n\t\"github.com/pengzj/swift\"\n\t\"./app/servers/connector/handler\"\n)\n\nfunc main()  {\n\tapp := swift.CreateApp()\n\tapp.SetConfigPath(\"/Users/francis.peng/Work/PfsGame/config\")\n\tapp.SetLogPath(\"/Users/francis.peng/Project/logs/pfs\")\n\n\tapp.HandleFunc(\"user.login\", handler.UserLogin)\n\tapp.RegisterHandler(\"onChat\")\n\n\tapp.Run()\n}\n\n````\n\n# server config directory\n**include files**:  \n|-- master.json  \n|-- servers.json  \n|-- secret.key \n\nmaster.json\n```\n{\n  \"id\": \"master-server-1\",\n  \"host\": \"127.0.0.1\",\n  \"port\": \"3015\"\n}\n```\nservers.json  \n````\n[\n  {\"type\": \"connector\", \"id\": \"connector-server-1\",\"clientHost\": \"127.0.0.1\", \"clientPort\": \"3301\", \"host\": \"127.0.0.1\", \"port\": \"3401\", \"frontend\": true, \"connType\": \"tcp\"},\n  {\"type\": \"connector\", \"id\": \"connector-server-2\",\"clientHost\": \"127.0.0.1\", \"clientPort\": \"3302\", \"host\": \"127.0.0.1\", \"port\": \"3402\", \"frontend\": true, \"connType\": \"tcp\"},\n  {\"type\": \"rank\", \"id\": \"rank-server-1\",\"host\": \"127.0.0.1\", \"port\": \"3403\", \"frontend\": false}\n]\n````\nsecret.key\n````\nasdfkksad$sadfk\n````\n\n# to do list\n \ndata  async  to db  **in progress**  \noptimize internal interface  \nmanage tool  \nservice    \ntest case  \nbenchmark \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpengzj%2Fswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpengzj%2Fswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpengzj%2Fswift/lists"}