networkhardware

package module
v0.0.0-...-68f3425 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

networkhardware

Ability to automatically identify the hardware assets on the network.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HardwareInfoJSON

func HardwareInfoJSON() (string, error)

Coleta informações de hardware da máquina Essa função coleta informações da CPU, memória, nome da máquina e IP da máquina Retorna um JSON com as informações e um erro

Types

type Hardware

type Hardware struct {
	CPUInfo     []cpu.InfoStat         `json:"cpu_info"`
	MemoryInfo  *mem.VirtualMemoryStat `json:"memory_info"`
	HostName    string                 `json:"host_name"`
	IPAddresses []string               `json:"ip_addresses"`
}

func HardwareInfo

func HardwareInfo() (*Hardware, error)

Coleta informações de hardware da máquina Essa função coleta informações da CPU, memória, nome da máquina e IP da máquina Retorna um ponteiro para uma struct Hardware e um erro

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL