{"id":17913251,"url":"https://github.com/florianl/go-conntrack","last_synced_at":"2025-03-31T04:03:56.491Z","repository":{"id":45207916,"uuid":"139629101","full_name":"florianl/go-conntrack","owner":"florianl","description":"c-binding free API for golang to communicate with the conntrack subsystem","archived":false,"fork":false,"pushed_at":"2024-09-21T06:43:49.000Z","size":185,"stargazers_count":143,"open_issues_count":1,"forks_count":25,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T01:14:34.225Z","etag":null,"topics":["api","conntrack","golang","linux","netlink-sockets"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/florianl.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":"2018-07-03T19:29:51.000Z","updated_at":"2025-03-07T08:15:30.000Z","dependencies_parsed_at":"2023-02-18T15:16:06.138Z","dependency_job_id":"48b8570a-8753-4237-a41c-c6f8a0e64057","html_url":"https://github.com/florianl/go-conntrack","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianl%2Fgo-conntrack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianl%2Fgo-conntrack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianl%2Fgo-conntrack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianl%2Fgo-conntrack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florianl","download_url":"https://codeload.github.com/florianl/go-conntrack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413232,"owners_count":20773053,"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","conntrack","golang","linux","netlink-sockets"],"created_at":"2024-10-28T19:50:37.636Z","updated_at":"2025-03-31T04:03:56.476Z","avatar_url":"https://github.com/florianl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-conntrack [![PkgGoDev](https://pkg.go.dev/badge/github.com/florianl/go-conntrack)](https://pkg.go.dev/github.com/florianl/go-conntrack) [![Go Report Card](https://goreportcard.com/badge/github.com/florianl/go-conntrack)](https://goreportcard.com/report/github.com/florianl/go-conntrack) [![Go](https://github.com/florianl/go-conntrack/actions/workflows/go.yml/badge.svg)](https://github.com/florianl/go-conntrack/actions/workflows/go.yml)\n============\n\nThis is `go-conntrack` and it is written in [golang](https://golang.org/). It provides a [C](https://en.wikipedia.org/wiki/C_(programming_language))-binding free API to the conntrack subsystem of the [Linux kernel](https://www.kernel.org).\n\n## Example\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/florianl/go-conntrack\"\n)\n\nfunc main() {\n\tnfct, err := conntrack.Open(\u0026conntrack.Config{})\n\tif err != nil {\n\t\tfmt.Println(\"could not create nfct:\", err)\n\t\treturn\n\t}\n\tdefer nfct.Close()\n\n\t// Get all IPv4 entries of the expected table.\n\tsessions, err := nfct.Dump(conntrack.Expected, conntrack.IPv4)\n\tif err != nil {\n\t\tfmt.Println(\"could not dump sessions:\", err)\n\t\treturn\n\t}\n\n\t// Print out all expected sessions.\n\tfor _, session := range sessions {\n\t\tfmt.Printf(\"%#v\\n\", session)\n\t}\n}\n```\n\n## Requirements\n\n* A version of Go that is [supported by upstream](https://golang.org/doc/devel/release.html#policy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianl%2Fgo-conntrack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorianl%2Fgo-conntrack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianl%2Fgo-conntrack/lists"}