shirou_gopsutil/load/load_fallback.go

27 lines
615 B
Go
Raw Normal View History

2021-12-23 05:54:41 +08:00
//go:build !darwin && !linux && !freebsd && !openbsd && !windows && !solaris && !aix
2021-11-09 21:14:54 +08:00
// +build !darwin,!linux,!freebsd,!openbsd,!windows,!solaris,!aix
package load
2017-12-31 14:25:49 +08:00
import (
"context"
"github.com/shirou/gopsutil/v3/internal/common"
2017-12-31 14:25:49 +08:00
)
func Avg() (*AvgStat, error) {
2017-12-31 14:25:49 +08:00
return AvgWithContext(context.Background())
}
func AvgWithContext(ctx context.Context) (*AvgStat, error) {
return nil, common.ErrNotImplementedError
}
func Misc() (*MiscStat, error) {
2017-12-31 14:25:49 +08:00
return MiscWithContext(context.Background())
}
func MiscWithContext(ctx context.Context) (*MiscStat, error) {
return nil, common.ErrNotImplementedError
}