...

Source file src/github.com/shirou/gopsutil/mem/mem_fallback.go

Documentation: github.com/shirou/gopsutil/mem

     1  // +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows
     2  
     3  package mem
     4  
     5  import (
     6  	"context"
     7  
     8  	"github.com/shirou/gopsutil/internal/common"
     9  )
    10  
    11  func VirtualMemory() (*VirtualMemoryStat, error) {
    12  	return VirtualMemoryWithContext(context.Background())
    13  }
    14  
    15  func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
    16  	return nil, common.ErrNotImplementedError
    17  }
    18  
    19  func SwapMemory() (*SwapMemoryStat, error) {
    20  	return SwapMemoryWithContext(context.Background())
    21  }
    22  
    23  func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
    24  	return nil, common.ErrNotImplementedError
    25  }
    26  
    27  func SwapDevices() ([]*SwapDevice, error) {
    28  	return SwapDevicesWithContext(context.Background())
    29  }
    30  
    31  func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) {
    32  	return nil, common.ErrNotImplementedError
    33  }
    34  

View as plain text