...

Source file src/github.com/shirou/gopsutil/load/load_fallback.go

Documentation: github.com/shirou/gopsutil/load

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

View as plain text