server

package
v0.0.0-...-9d99875 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: GPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rpc

func Rpc()

func Server

func Server() error

func ServerInfo

func ServerInfo() interface{}

Types

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

type Gpu

type Gpu struct {
	GpuName     string         `xml:"product_name"`
	BiosVersion string         `xml:"vbios_version"`
	FanSpeed    string         `xml:"fan_speed"`
	Utilization GpuUtilization `xml:"utilization"`
	Temperature GpuTemperature `xml:"temperature"`
	Clock       GpuClock       `xml:"clocks"`
}

type GpuClock

type GpuClock struct {
	GpuClock    string `xml:"graphics_clock"`
	GpuMemClock string `xml:"mem_clock"`
}

type GpuTemperature

type GpuTemperature struct {
	GpuTemp string `xml:"gpu_temp"`
}

type GpuUtilization

type GpuUtilization struct {
	GpuUsage    string `xml:"gpu_util"`
	MemoryUsage string `xml:"memory_util"`
}

type Listener

type Listener int

func (*Listener) StartContainer

func (l *Listener) StartContainer(reply *Docker) error

Starts container using RPC calls

type Query

type Query struct {
	DriveVersion string `xml:"driver_version"`
	Gpu          Gpu    `xml:"gpu"`
}

func GPUInfo

func GPUInfo() (*Query, error)

Gets GPU information by calling nvidia-smi in XML output

type SysInfo

type SysInfo struct {
	Hostname string `bson:hostname`
	Platform string `bson:platform`
	CPU      string `bson:cpu`
	RAM      uint64 `bson:ram`
	Disk     uint64 `bson:disk`
	GPU      *Query `xml: GpuInfo`
}

SysInfo saves the basic system information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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