utils

package
v0.0.26-beta-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
)

Functions

func InitLogger

func InitLogger(logger *logrus.Logger)

func NewLogger

func NewLogger(logLevel logrus.Level) (*logrus.Logger, error)

Types

type DebugInfo

type DebugInfo struct {
	ServerVersion          string                  `json:"version"`
	DatabaseOnline         bool                    `json:"databaseOnline"`
	DatabaseStats          database.DBStatus       `json:"databaseStats"`
	CpuCores               uint8                   `json:"cpuCores"`
	Goroutines             uint16                  `json:"goroutines"`
	GoVersion              string                  `json:"goVersion"`
	MemoryUsage            uint16                  `json:"memoryUsage"`
	PowerJobCount          uint16                  `json:"powerJobCount"`
	PowerJobWithErrorCount uint16                  `json:"lastPowerJobErrorCount"`
	PowerJobs              []hardware.PowerJob     `json:"powerJobs"`
	PowerJobResults        []hardware.JobResult    `json:"powerJobResults"`
	HardwareNodesCount     uint8                   `json:"hardwareNodesCount"`
	HardwareNodesOnline    uint8                   `json:"hardwareNodesOnline"`
	HardwareNodesEnabled   uint8                   `json:"hardwareNodesEnabled"`
	Nodes                  []database.HardwareNode `json:"hardwareNodes"`
}

func SysInfo

func SysInfo() DebugInfo

Jump to

Keyboard shortcuts

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