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

worker

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package worker answers connector questions for the control services. Local serves them from in-process registries; the same contract is served over the wire by a persistent worker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w filament.Worker, opts ...connect.HandlerOption) (string, http.Handler)

Handler serves a Worker over ConnectRPC. The persistent worker mounts it so the control services reach the drivers it carries. It returns the mount pattern and the handler, as the generated constructor does.

func Local

Local answers from the given registries in process.

func Remote

func Remote(baseURL string, opts ...connect.ClientOption) filament.Worker

Remote returns a Worker that forwards to the persistent worker at baseURL, so the caller links no driver. Specs are served from a cached snapshot that refreshes in the background; every other call is one RPC under the caller's deadline. A bare host:port, as some platforms inject, is taken as plain HTTP.

Types

This section is empty.

Jump to

Keyboard shortcuts

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