load_fallback.go 513 B

12345678910111213141516171819202122232425
  1. // +build !darwin,!linux,!freebsd,!openbsd,!windows
  2. package load
  3. import (
  4. "context"
  5. "github.com/shirou/gopsutil/internal/common"
  6. )
  7. func Avg() (*AvgStat, error) {
  8. return AvgWithContext(context.Background())
  9. }
  10. func AvgWithContext(ctx context.Context) (*AvgStat, error) {
  11. return nil, common.ErrNotImplementedError
  12. }
  13. func Misc() (*MiscStat, error) {
  14. return MiscWithContext(context.Background())
  15. }
  16. func MiscWithContext(ctx context.Context) (*MiscStat, error) {
  17. return nil, common.ErrNotImplementedError
  18. }