sysinfo

package
v0.0.0-...-77652f2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHex

func DecodeHex(s string) []byte

func GeLocalIp

func GeLocalIp() net.IP

Get preferred outbound ip of this machine

func GetPublicIP

func GetPublicIP() (string, error)

func HashValue

func HashValue(value string) string

Types

type IP

type IP struct {
	Query string
}

type SysInfo

type SysInfo struct {
	Hostname string `bson:hostname`
	Platform string `bson:platform`
	CPU      string `bson:cpu`
	RAM      uint64 `bson:ram`
	Disk     uint64 `bson:disk`
}

SysInfo saves the basic system information

func NewSysInfo

func NewSysInfo() *SysInfo

func (*SysInfo) ToHash

func (sysInfo *SysInfo) ToHash() string

func (*SysInfo) ToString

func (sysInfo *SysInfo) ToString() string

Jump to

Keyboard shortcuts

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