light modification
This commit is contained in:
@@ -2,8 +2,8 @@ package common
|
||||
|
||||
// CPU is a struct that represents a CPU
|
||||
type CPU struct {
|
||||
Model string `bson:"platform,omitempty" json:"platform,omitempty"`
|
||||
FrequencyGhz float64 `bson:"frenquency,omitempty" json:"frenquency,omitempty"`
|
||||
Model string `bson:"model,omitempty" json:"model,omitempty"`
|
||||
FrequencyGhz float64 `bson:"frequency,omitempty" json:"frequency,omitempty"`
|
||||
Cores int `bson:"cores,omitempty" json:"cores,omitempty"`
|
||||
Architecture string `bson:"architecture,omitempty" json:"architecture,omitempty"`
|
||||
}
|
||||
@@ -14,8 +14,9 @@ type RAM struct {
|
||||
}
|
||||
|
||||
type GPU struct {
|
||||
Model string `bson:"platform,omitempty" json:"platform,omitempty"`
|
||||
MemoryGb float64 `bson:"memory,omitempty" json:"memory,omitempty" description:"Units in MB"`
|
||||
Model string `bson:"model,omitempty" json:"model,omitempty"`
|
||||
MemoryGb float64 `bson:"memory,omitempty" json:"memory,omitempty" description:"Units in MB"`
|
||||
Cores map[string]int `bson:"cores,omitempty" json:"cores,omitempty"`
|
||||
}
|
||||
|
||||
type InfrastructureType int
|
||||
|
||||
Reference in New Issue
Block a user