frontend

package
v0.0.0-...-958ef34 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentData

type AgentData struct {
	Hostname string    `json:"hostname"`
	Port     int       `json:"port"`
	Id       string    `json:"uuid"`
	Action   string    `json:"action"`
	Nonce    int       `json:"nonce"`
	GpuCount int       `json:"gpu_count"`
	Gpus     []GpuData `json:"data"`
	Ip       string    `json:"ip"`
}

type Frontend

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

func NewFrontend

func NewFrontend(server *server.Server, storage storage.Storage) (*Frontend, error)

func (*Frontend) Run

func (frontend *Frontend) Run(group task.Group) error

type GpuData

type GpuData struct {
	Vendor         string  `json:"vendor"`
	Model          string  `json:"model"`
	Bus            string  `json:"bus"`
	BusAddress     string  `json:"busAddress"`
	Vram           uint64  `json:"vram"`
	VramDynamic    bool    `json:"vramDynamic"`
	DriverVersion  string  `json:"driverVersion"`
	SubDeviceId    string  `json:"subDeviceId"`
	Name           string  `json:"name"`
	PciBus         string  `json:"pciBus"`
	MemoryTotal    uint64  `json:"memoryTotal"`
	MemoryUsed     uint64  `json:"memoryUsed"`
	MemoryFree     uint64  `json:"memoryFree"`
	TemperatureGpu uint32  `json:"temperatureGpu"`
	PowerDraw      float32 `json:"powerDraw"`
	PowerLimit     float32 `json:"powerLimit"`
	ClockCore      uint32  `json:"clockCore"`
	ClockMemory    uint32  `json:"clockMemory"`
	Uuid           string  `json:"uuid"`
	Ordinal        string  `json:"ordinal"`
}

Pulled from former Node version

type StatusFormer

type StatusFormer struct {
	Status   string      `json:"status"`
	Version  string      `json:"version"`
	UptimeMs int64       `json:"uptime_ms"`
	Hosts    []AgentData `json:"hosts"`
}

Jump to

Keyboard shortcuts

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