2016-11-22 06:18:52 +08:00
|
|
|
// +build !darwin,!linux,!freebsd,!openbsd,!windows
|
2016-08-23 06:31:26 +08:00
|
|
|
|
|
|
|
package net
|
|
|
|
|
2017-12-31 14:25:49 +08:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/shirou/gopsutil/internal/common"
|
|
|
|
)
|
2016-08-23 06:31:26 +08:00
|
|
|
|
|
|
|
func IOCounters(pernic bool) ([]IOCountersStat, error) {
|
2017-12-31 14:25:49 +08:00
|
|
|
return IOCountersWithContext(context.Background(), pernic)
|
|
|
|
}
|
|
|
|
|
|
|
|
func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat, error) {
|
2016-08-23 06:31:26 +08:00
|
|
|
return []IOCountersStat{}, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func FilterCounters() ([]FilterStat, error) {
|
2017-12-31 14:25:49 +08:00
|
|
|
return FilterCountersWithContext(context.Background())
|
|
|
|
}
|
|
|
|
|
|
|
|
func FilterCountersWithContext(ctx context.Context) ([]FilterStat, error) {
|
2016-08-23 06:31:26 +08:00
|
|
|
return []FilterStat{}, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) {
|
2017-12-31 14:25:49 +08:00
|
|
|
return ProtoCountersWithContext(context.Background(), protocols)
|
|
|
|
}
|
|
|
|
|
|
|
|
func ProtoCountersWithContext(ctx context.Context, protocols []string) ([]ProtoCountersStat, error) {
|
2016-08-23 06:31:26 +08:00
|
|
|
return []ProtoCountersStat{}, common.ErrNotImplementedError
|
|
|
|
}
|
|
|
|
|
|
|
|
func Connections(kind string) ([]ConnectionStat, error) {
|
2017-12-31 14:25:49 +08:00
|
|
|
return ConnectionsWithContext(context.Background(), kind)
|
|
|
|
}
|
|
|
|
|
|
|
|
func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat, error) {
|
2016-08-23 06:31:26 +08:00
|
|
|
return []ConnectionStat{}, common.ErrNotImplementedError
|
|
|
|
}
|
2016-12-12 01:59:26 +08:00
|
|
|
|
|
|
|
func ConnectionsMax(kind string, max int) ([]ConnectionStat, error) {
|
2017-12-31 14:25:49 +08:00
|
|
|
return ConnectionsMaxWithContext(context.Background(), kind, max)
|
|
|
|
}
|
|
|
|
|
|
|
|
func ConnectionsMaxWithContext(ctx context.Context, kind string, max int) ([]ConnectionStat, error) {
|
2016-12-12 01:59:26 +08:00
|
|
|
return []ConnectionStat{}, common.ErrNotImplementedError
|
|
|
|
}
|