utils

package
v0.0.6-beta Latest Latest
Warning

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

Go to latest
Published: Mar 21, 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 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"`
}

func SysInfo

func SysInfo() DebugInfo

Jump to

Keyboard shortcuts

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