app

package
v0.0.0-...-d24d52a Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router   *mux.Router
	Database *sqlx.DB
}

func (*App) SetupRouter

func (app *App) SetupRouter()

type Mach

type Mach struct {
	ID              int         `db:"id" json:"id"`
	UUID            null.String `db:"uuid" json:"uuid,omitempty"`
	LogID           null.String `db:"log_id" json:"log_id,omitempty"`
	CPUCoreCount    null.Int    `db:"cpu_core_count" json:"cpu_core_count,omitempty"`
	CPUFamModelStep null.String `db:"cpu_family_model_stepping" json:"cpu_family_model_stepping,omitempty"`
	CPUFlags        null.String `db:"cpu_flags" json:"cpu_flags,omitempty"`
	CPUVendor       null.String `db:"cpu_vendor" json:"cpu_vendor,omitempty"`
	CPUInfo         null.String `db:"cpuinfo" json:"cpuinfo,omitempty"`
	DMIDecode       null.String `db:"dmidecode" json:"dmidecode,omitempty"`
	LsCPU           null.String `db:"lscpu" json:"lscpu,omitempty"`
	LogTime         null.String `db:"log_time" json:"log_time"`
	MemInfo         null.String `db:"meminfo" json:"meminfo,omitempty"`
	SerialNum       null.String `db:"serial_num" json:"serial_num,omitempty"`
	TestCmd         null.String `db:"test_cmd" json:"test_cmd,omitempty"`
	TestLog         null.String `db:"test_log" json:"test_log,omitempty"`
	TestMetric      null.String `db:"test_metric" json:"test_metric,omitempty"`
	TestName        null.String `db:"test_name" json:"test_name,omitempty"`
	TestParams      null.String `db:"test_params" json:"test_params,omitempty"`
	TestStatus      null.String `db:"test_status" json:"test_status,omitempty"`
	TimeEnd         null.String `db:"time_end" json:"time_end,omitempty"`
	TimeStart       null.String `db:"time_start" json:"time_start,omitempty"`
}

GET

type Machine

type Machine struct {
	ID              int                 `db:"id" json:"id"`
	UUID            null.String         `db:"uuid" json:"uuid,omitempty"`
	LogID           null.String         `db:"log_id" json:"log_id,omitempty"`
	CPUCoreCount    null.Int            `db:"cpu_core_count" json:"cpu_core_count,omitempty"`
	CPUFamModelStep null.String         `db:"cpu_family_model_stepping" json:"cpu_family_model_stepping,omitempty"`
	CPUFlags        null.String         `db:"cpu_flags" json:"cpu_flags,omitempty"`
	CPUVendor       null.String         `db:"cpu_vendor" json:"cpu_vendor,omitempty"`
	CPUInfo         []map[string]string `db:"cpuinfo" json:"cpuinfo,omitempty"`
	DMIDecode       map[string][]string `db:"dmidecode" json:"dmidecode,omitempty"`
	LogTime         null.String         `db:"log_time" json:"log_time"`
	LsCPU           map[string]string   `db:"lscpu" json:"lscpu,omitempty"`
	MemInfo         map[string]int      `db:"meminfo" json:"meminfo,omitempty"`
	SerialNum       null.String         `db:"serial_num" json:"serial_num,omitempty"`
	TestCmd         null.String         `db:"test_cmd" json:"test_cmd,omitempty"`
	TestLog         null.String         `db:"test_log" json:"test_log,omitempty"`
	TestMetric      null.String         `db:"test_metric" json:"test_metric,omitempty"`
	TestName        null.String         `db:"test_name" json:"test_name,omitempty"`
	TestParams      map[string]int      `db:"test_params" json:"test_params,omitempty"`
	TestStatus      null.String         `db:"test_status" json:"test_status,omitempty"`
	TimeEnd         null.String         `db:"time_end" json:"time_end"`
	TimeStart       null.String         `db:"time_start" json:"time_start"`
}

POST

Jump to

Keyboard shortcuts

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