handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskExecutor

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

TaskExecutor implements node.TaskHandler. It executes tasks dispatched from Hivemind via the heartbeat stream.

func NewTaskExecutor

func NewTaskExecutor(nodeService *node.Service) *TaskExecutor

NewTaskExecutor creates a new TaskExecutor.

func (*TaskExecutor) CancelTask

func (h *TaskExecutor) CancelTask(taskID string, reason string)

CancelTask cancels a running task.

func (*TaskExecutor) HandleTask

func (h *TaskExecutor) HandleTask(ctx context.Context, task *pb.Task)

HandleTask executes a dispatched task asynchronously and reports the result.

Jump to

Keyboard shortcuts

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