sd

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNew

func MustNew(cfg Config) plugins.IWorker

Types

type Config

type Config struct {
	Logger *log.Entry
}

type TaskPayload

type TaskPayload struct {
	Path string          `json:"path"`
	Body json.RawMessage `json:"body"`
}

TaskPayload struct definition with JSON tags for unmarshalling

type Worker

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

func (*Worker) CoinSymbol

func (w *Worker) CoinSymbol() plugins.CoinSymbol

func (*Worker) ExecuteTask

func (w *Worker) ExecuteTask(payload json.RawMessage) (json.RawMessage, error)

func (*Worker) SysInfo

func (w *Worker) SysInfo() *plugins.GPUProvider

Directories

Path Synopsis
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