1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-24 12:04:02 +00:00
fiber/internal/gopsutil/mem/mem_fallback.go

26 lines
611 B
Go
Raw Normal View History

2020-09-27 22:56:31 +02:00
// +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
}