Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v1.0.85 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSink added in v1.0.84

func SetSink(s Sink)

Types

type Handler

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

func NewHandler

func NewHandler(conn *grpc.ClientConn) *Handler

func (*Handler) Client added in v1.0.84

func (h *Handler) Client() pb.AgentTaskServiceClient

func (*Handler) Context added in v1.0.84

func (h *Handler) Context() context.Context

func (*Handler) Run

func (h *Handler) Run()

func (*Handler) Stop

func (h *Handler) Stop()

func (*Handler) StopAccepting added in v1.0.84

func (h *Handler) StopAccepting(ctx context.Context) error

StopAccepting closes the subscription so no further assignments arrive. The executor drains separately, so an in-flight task keeps running.

type Sink added in v1.0.84

type Sink interface {
	Submit(a *pb.TaskAssignment)
	RunningTask() (taskID string, leaseToken string)
}

Sink receives assignments from the stream. The executor implements it (Task 12).

Jump to

Keyboard shortcuts

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