{"id":20562893,"url":"https://github.com/duguying/gomtr","last_synced_at":"2025-04-14T14:41:12.130Z","repository":{"id":69616070,"uuid":"83781759","full_name":"duguying/gomtr","owner":"duguying","description":"gomtr is a golang wrapper for mtr-packet","archived":false,"fork":false,"pushed_at":"2018-04-10T06:14:23.000Z","size":63,"stargazers_count":9,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T06:30:02.172Z","etag":null,"topics":["golang","mtr","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duguying.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-03T09:31:50.000Z","updated_at":"2024-08-12T19:28:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"f56d8329-6b3f-435a-80ea-52e44d080d1e","html_url":"https://github.com/duguying/gomtr","commit_stats":{"total_commits":137,"total_committers":2,"mean_commits":68.5,"dds":"0.26277372262773724","last_synced_commit":"bcec844454cebc8f372e9849a1faf5cf6ce09910"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fgomtr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fgomtr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fgomtr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duguying%2Fgomtr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duguying","download_url":"https://codeload.github.com/duguying/gomtr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898438,"owners_count":21179775,"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":["golang","mtr","wrapper"],"created_at":"2024-11-16T04:14:55.462Z","updated_at":"2025-04-14T14:41:12.107Z","avatar_url":"https://github.com/duguying.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gomtr [![Build Status](https://travis-ci.org/duguying/gomtr.svg?branch=master)](https://travis-ci.org/duguying/gomtr)\n\ngomtr is a golang wrap for mtr-packet with born for solve concurrency mtr calling.\n\n### usage\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/duguying/gomtr\"\n\t\"github.com/gogather/com/log\"\n\t\"time\"\n)\n\nfunc main() {\n\tmtr := gomtr.NewMtrService(\"./mtr-packet\")\n\tgo mtr.Start()\n\n\ttime.Sleep(time.Second * 10)\n\n\tiplist := []string{\"183.131.7.130\", \"127.0.0.1\", \"114.215.151.25\", \"111.13.101.208\"}\n\n\tfor i := 0; i \u003c len(iplist); i++ {\n\t\tmtr.Request(iplist[i], 10, func(response interface{}) {\n\t\t\ttask := response.(*gomtr.MtrTask)\n\t\t\tlog.Blueln(\"[ID]\", i)\n\t\t\tfmt.Println(task.GetSummaryString())\n\t\t})\n\t}\n}\n\n```\n\n### license\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduguying%2Fgomtr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduguying%2Fgomtr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduguying%2Fgomtr/lists"}