1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

27 Commits

Author SHA1 Message Date
Ville Skyttä
7befb75528 [net] gofumpt with 0.3.0 / golangci-lint 1.45.0 2022-03-19 22:43:20 +02:00
shirou
d2e27c1712 fix dependabot v2 deletion. 2021-12-01 00:12:55 +00:00
shirou
0969c9436b delete v2 directory, move v3 to top #1078 2021-11-30 23:47:59 +00:00
Tobias Klauser
22d8ee41e5 net: move parseNetLine and parseNetAddr to net_unix.go
These funcs are only used in net_unix.go which is only compiled for
darwin and freebsd.
2020-02-25 10:05:37 +01:00
Snow Fox
018950cf06
Merge pull request #2 from shirou/master
merge master
2019-07-18 15:26:30 +08:00
litong
1f9466536e Add ifIndex support 2019-07-18 15:21:21 +08:00
litong
7ffe40e0db Add ifIndex support 2019-07-18 15:12:45 +08:00
Curtis Mattoon
648bf4eebc Adds ConntrackStats to get conntrack summary stats 2019-05-11 12:45:05 -04:00
Kamil Dziedzic
b76d065dff
PMM-2643: Support listing unix sockets in ConnectionsPid and ConnectionsPidWithContext.
Signed-off-by: Kamil Dziedzic <arvenil@klecza.pl>
2018-07-03 16:57:21 +02:00
Laurie Clark-Michalek
413cb32b6c Use static initialisation for invoke instances, instead of init funcs
The order of init function execution is dependant on the order that the
source files are passed to the compiler. This causes issues when
building under other build systems, such as bazel or buck, as they are
not guarenteed to maintain the same file order as the default go tool.
2018-03-21 14:08:39 +00:00
shirou
4c73494c78 Add WithContext functions. 2017-12-31 15:25:49 +09:00
Jean Kahrs
cba0992ab3 add Uids field to net_linux 2016-10-06 14:50:03 +02:00
sandlbn
480ccb89e1 Added support for linux net interface fifo errors 2016-06-13 13:27:25 +01:00
Shirou WAKAYAMA
4bb84648bf JSON representation is renamed to fit Google JSON style, camelCase. 2016-03-23 10:52:46 +09:00
Shirou WAKAYAMA
ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 2016-03-22 23:09:12 +09:00
Masayoshi Sekimura
3a1fa5dc80 format go program with go 1.5.2 "go fmt" 2016-01-09 16:17:21 -08:00
James Lamb
a9e946c7dd change the snakecase to reflect the files being read 2015-12-09 07:49:20 +11:00
James Lamb
5700150054 Updated README.rst and included updated syntax to be more uniform with the other code 2015-12-09 07:45:26 +11:00
James Lamb
22f35fd518 add netfilter counter support 2015-12-08 09:32:45 +11:00
James Lamb
dfff8af4df add nf_conntrack statistics to net_linux to query iptables/netfilter conntrack limits 2015-12-07 16:56:02 +11:00
Nathaniel Cook
da832b3f12 add system wide network protocol stats 2015-11-20 10:17:21 -07:00
Daniel Theophanes
0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100
2015-10-18 20:40:01 -07:00
Shirou WAKAYAMA
8d21be591e net[linux]: implements NetConnections() using lsof. 2015-09-16 16:20:07 +09:00
Shirou WAKAYAMA
c50db4f462 net[darwin]: implement NetConnections(). 2015-09-16 16:13:00 +09:00
Shirou WAKAYAMA
406cbe9b87 implements pernic of NetIOCounters. 2015-01-01 21:29:25 +09:00
Shirou WAKAYAMA
13cd195a7e change package name. 2014-12-30 22:09:05 +09:00
Shirou WAKAYAMA
a4671fcc2a move subdirectories. refer to issue #24 2014-11-27 10:18:15 +09:00