Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.