Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bastjan/netstat
:telescope: Netstat helps you query open network connections in your go application.
https://github.com/bastjan/netstat
go golang netstat network procfs
Last synced: 6 days ago
JSON representation
:telescope: Netstat helps you query open network connections in your go application.
- Host: GitHub
- URL: https://github.com/bastjan/netstat
- Owner: bastjan
- License: mit
- Created: 2018-10-15T05:46:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T08:01:40.000Z (almost 5 years ago)
- Last Synced: 2024-06-18T21:32:08.553Z (7 months ago)
- Topics: go, golang, netstat, network, procfs
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 10
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# netstat for go
[![GoDoc][doc-img]][doc] [![CI Status][ci-img]][ci] [![Coverage Status][cover-img]][cover] [![Go Report Card][report-img]][report]
Package netstat helps you query open network connections.
## Getting Started
```go
import "github.com/bastjan/netstat"// Query open tcp sockets
netstat.TCP.Connections()// Query open udp sockets for ipv6 connections
netstat.UDP6.Connections()
```See [netstat_tulpen.go](examples/netstat_tulpen/netstat_tulpen.go) for a more throughout example.
## Development Status: Stable
This library is v1 and follows SemVer.
No breaking changes will be made to exported APIs before v2.0.0.
## Support for Mac OS and *BSD
There is currently no support planned for MacOS or *BSD without procfs support.
[doc]: https://godoc.org/github.com/bastjan/netstat
[doc-img]: https://godoc.org/github.com/bastjan/netstat?status.svg
[cover]: https://codecov.io/gh/bastjan/netstat
[cover-img]: https://codecov.io/gh/bastjan/netstat/branch/master/graph/badge.svg
[ci]: https://travis-ci.org/bastjan/netstat
[ci-img]: https://travis-ci.org/bastjan/netstat.svg?branch=master
[report]: https://goreportcard.com/report/github.com/bastjan/netstat
[report-img]: https://goreportcard.com/badge/github.com/bastjan/netstat