mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-02 22:17:08 +08:00

This enables using gopsutil in a codebase that gets built on other OSes than the ones supported. Instead of a build failure as before, due to the build tags, gopsutil will now throw an "not implemented" runtime error. Fixes #234.
22 lines
583 B
Go
22 lines
583 B
Go
// +build !darwin,!linux,!freebsd,!windows
|
|
|
|
package net
|
|
|
|
import "github.com/shirou/gopsutil/internal/common"
|
|
|
|
func IOCounters(pernic bool) ([]IOCountersStat, error) {
|
|
return []IOCountersStat{}, common.ErrNotImplementedError
|
|
}
|
|
|
|
func FilterCounters() ([]FilterStat, error) {
|
|
return []FilterStat{}, common.ErrNotImplementedError
|
|
}
|
|
|
|
func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) {
|
|
return []ProtoCountersStat{}, common.ErrNotImplementedError
|
|
}
|
|
|
|
func Connections(kind string) ([]ConnectionStat, error) {
|
|
return []ConnectionStat{}, common.ErrNotImplementedError
|
|
}
|