{"id":14988333,"url":"https://github.com/apache/skywalking-goapi","last_synced_at":"2025-05-16T04:06:30.102Z","repository":{"id":37866547,"uuid":"351349940","full_name":"apache/skywalking-goapi","owner":"apache","description":"Apache SkyWalking API in Golang.","archived":false,"fork":false,"pushed_at":"2025-02-25T13:02:48.000Z","size":711,"stargazers_count":44,"open_issues_count":0,"forks_count":26,"subscribers_count":42,"default_branch":"main","last_synced_at":"2025-04-01T14:11:14.822Z","etag":null,"topics":["api","go","skywalking"],"latest_commit_sha":null,"homepage":"https://skywalking.apache.org/","language":"Shell","has_issues":false,"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/apache.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-25T07:44:54.000Z","updated_at":"2025-02-25T13:02:53.000Z","dependencies_parsed_at":"2023-01-21T14:00:15.950Z","dependency_job_id":"49bae8b7-b95e-4a63-8fda-07cdf85fe6ba","html_url":"https://github.com/apache/skywalking-goapi","commit_stats":{"total_commits":85,"total_committers":13,"mean_commits":6.538461538461538,"dds":0.2823529411764706,"last_synced_commit":"d4a23d9da0e00725d56684d95bdf7a4bfc91059e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fskywalking-goapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fskywalking-goapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fskywalking-goapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fskywalking-goapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/skywalking-goapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247714511,"owners_count":20983889,"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":["api","go","skywalking"],"created_at":"2024-09-24T14:16:33.225Z","updated_at":"2025-04-08T15:11:32.784Z","avatar_url":"https://github.com/apache.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SkyWalking Go APIs\n\nThis repository contains the Go files generated from\nthe sniff protocol([data collect protocol](http://github.com/apache/skywalking-data-collect-protocol), the satellite protocol) and\nthe [query protocol](http://github.com/apache/skywalking-query-protocol) for convenient use.\n\nYou can use the following commands to install this module.\n\n```shell\ngo get skywalking.apache.org/repo/goapi\n```\n\n## Data Sniff Protocol\n\nTo use the Go files generated from\nthe [data collect protocol](http://github.com/apache/skywalking-data-collect-protocol) and the satellite protocol, use the import\npath `skywalking.apache.org/repo/goapi/collect` and `skywalking.apache.org/repo/goapi/satellite`, for example,\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\tv3 \"skywalking.apache.org/repo/goapi/collect/event/v3\"\n\tv1 \"skywalking.apache.org/repo/goapi/satellite/data/v1\"\n)\n\nfunc main() {\n\tevent := \u0026v3.Event{\n\t\tUuid:       \"\",\n\t\tSource:     nil,\n\t\tName:       \"\",\n\t\tType:       0,\n\t\tMessage:    \"\",\n\t\tParameters: nil,\n\t\tStartTime:  0,\n\t\tEndTime:    0,\n\t}\n\n\tsniffData := \u0026v1.SniffData{\n\t\tTimestamp: time.Now().Unix() / 1e6,\n\t\tName:      \"Satellite_event\",\n\t\tType:      v1.SniffType_EventType,\n\t\tMeta:      nil,\n\t\tRemote:    true,\n\t\tData: \u0026v1.SniffData_Event{\n\t\t\tEvent: event,\n\t\t},\n\t}\n\tfmt.Printf(\"+%v\", sniffData)\n}\n\n```\n\n## Query Protocol\n\nTo use the Go files generated from the [query protocol](http://github.com/apache/skywalking-query-protocol), use the\nimport path `skywalking.apache.org/repo/goapi/query`, for example,\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"skywalking.apache.org/repo/goapi/query\"\n)\n\nfunc main() {\n\tevents := query.Events{\n\t\tEvents: nil,\n\t\tTotal:  0,\n\t}\n\n\tfmt.Printf(\"+%v\", events)\n}\n```\n\n\n## Development\n\nTo update this repo, update the commit sha in the `dependencies.sh` file, and run `make` to regenerate the Go files,\nthen commit and open a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fskywalking-goapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fskywalking-goapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fskywalking-goapi/lists"}