Discover Packages
github.com/offer365/odin
node
package
Version:
v0.9.1
Opens a new window with list of versions in this module.
Published: Sep 26, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func RunRpcServer(port string , register interface{})
type Attr struct {
Name string `bson:"name" json:"name"`
IP string `bson:"ip" json:"ip"`
Start int64 `bson:"start" json:"start"`
HwMd5 string `bson:"md5" json:"md5"`
Now int64 `bson:"now" json:"now"`
}
type Bios struct {
Vendor string `json:"vendor"`
}
type Board struct {
Name string `json:"name"`
Vendor string `json:"vendor"`
Version string `json:"version"`
Serial string `json:"serial"`
Assettag string `json:"assettag"`
}
type Chassis struct {
Type uint `json:"type"`
Vendor string `json:"vendor"`
Version string `json:"version"`
Serial string `json:"vSerial"`
Assettag string `json:"assettag"`
}
type Cpu struct {
Vendor string `json:"vendor"`
Model string `json:"model"`
Speed uint `json:"speed"`
Cache uint `json:"cache"`
Cpus uint `json:"cpus"`
Cores uint `json:"cores"`
Threads uint `json:"threads"`
}
type Hardware struct {
Host *Host `bson:"host" json:"host"`
Product *Product `json:"product"`
Board *Board `json:"board"`
Bios *Bios `json:"bios"`
Cpu *Cpu `bson:"cpu" json:"cpu"`
Mem *Mem `json:"mem"`
Networks []*Network `json:"networks"`
}
type Host struct {
Machineid string `json:"machineid"`
Hypervisor string `json:"hypervisor"`
Architecture string `json:"architecture"`
}
type Mem struct {
Type string `json:"type"`
Speed uint `json:"speed"`
}
内存
type Network struct {
Driver string `json:"driver"`
Macaddress string `json:"macaddress"`
Speed uint `json:"speed"`
}
type Product struct {
Name string `json:"name"`
Vendor string `json:"vendor"`
Version string `json:"version"`
Serial string `json:"serial"`
}
type Storage struct {
Driver string `json:"driver"`
Vendor string `json:"vendor"`
Model string `json:"model"`
Serial string `json:"serial"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.