package status

import (
	"github.com/shirou/gopsutil/v3/host"
)

type HostInfo struct {
	host.InfoStat
}

func GetHostInfo() (*HostInfo, error) {

	info, err := host.Info()
	if err != nil {
		log.ErrorF("get host info error => %v", err)
		return nil, err
	}

	return &HostInfo{
		InfoStat: *info,
	}, nil
}
