plugins

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

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinSymbol

type CoinSymbol int
const (
	// Define task statuses using iota for auto-incrementing.
	Unknown CoinSymbol = iota
	SD
)

func CoinSymbolFromString

func CoinSymbolFromString(s string) CoinSymbol

func (CoinSymbol) String

func (t CoinSymbol) String() string

type GPUProvider

type GPUProvider struct {
	WalletAddress   string                `json:"walletAddress"` // primary key
	Sig             string                `json:"sig"`
	Platform        string                `json:"platform"`
	Python          string                `json:"python"`
	Version         string                `json:"version"`
	Commit          string                `json:"commit"`
	Checksum        string                `json:"checksum"`
	OS              string                `json:"os"`
	NvidiaGPUModles sdcli.NvidiaGPUModels `json:"nvidia_gpu_models"`
	CPU             sdcli.CPUInfo         `json:"CPU"`
	RAM             sdcli.RAMInfo         `json:"RAM"`
	CreatedAt       time.Time             `json:"createdAt"`
	UpdatedAt       time.Time             `json:"updatedAt"`
	IP              string
}

type IWorker

type IWorker interface {
	CoinSymbol() CoinSymbol
	SysInfo() *GPUProvider
	ExecuteTask(payload json.RawMessage) (json.RawMessage, error)
}

Directories

Path Synopsis
sd
sdcli/gen
Package gen provides primitives to interact with the openapi HTTP API.
Package gen provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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