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

distributedtask

package
v1.37.10 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(authorizer authorization.Authorizer, taskLister distributedtask.TasksLister) *Handler

func (*Handler) ListTasks

func (h *Handler) ListTasks(ctx context.Context, principal *models.Principal) (models.DistributedTasks, error)

ListTasks converts internal distributedtask.Task structs into the REST API model. The raw task payload (opaque bytes internally) is unmarshaled into a generic JSON map — if we ever add sensitive fields to payloads, the distributedtask.Provider interface should grow a method to redact them before they reach this layer.

Jump to

Keyboard shortcuts

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