mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
32 lines
876 B
Go
32 lines
876 B
Go
package entity
|
|
|
|
type SystemInfo struct {
|
|
ARCH string `json:"arch"`
|
|
OS string `json:"os"`
|
|
Hostname string `json:"host_name"`
|
|
NumCpu int `json:"num_cpu"`
|
|
Executables []Executable `json:"executables"`
|
|
}
|
|
|
|
type Executable struct {
|
|
Path string `json:"path"`
|
|
FileName string `json:"file_name"`
|
|
DisplayName string `json:"display_name"`
|
|
}
|
|
|
|
type Lang struct {
|
|
Name string `json:"name"`
|
|
ExecutableName string `json:"executable_name"`
|
|
ExecutablePath string `json:"executable_path"`
|
|
DepExecutablePath string `json:"dep_executable_path"`
|
|
Installed bool `json:"installed"`
|
|
}
|
|
|
|
type Dependency struct {
|
|
Name string `json:"name"`
|
|
Version string `json:"version"`
|
|
Description string `json:"description"`
|
|
Lang string `json:"lang"`
|
|
Installed bool `json:"installed"`
|
|
}
|