25 lines
627 B
Go
25 lines
627 B
Go
//go:build !darwin && !linux && !freebsd && !openbsd && !solaris && !windows
|
|
|
|
package mem
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gofiber/fiber/v2/internal/gopsutil/common"
|
|
)
|
|
|
|
func VirtualMemory() (*VirtualMemoryStat, error) {
|
|
return VirtualMemoryWithContext(context.Background())
|
|
}
|
|
|
|
func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
|
|
return nil, common.ErrNotImplementedError
|
|
}
|
|
|
|
func SwapMemory() (*SwapMemoryStat, error) {
|
|
return SwapMemoryWithContext(context.Background())
|
|
}
|
|
|
|
func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
|
|
return nil, common.ErrNotImplementedError
|
|
}
|