forwarder

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectOrStartDaemon

func ConnectOrStartDaemon(ctx context.Context, socketPath string, logger *slog.Logger, tp trace.TracerProvider) (serenav1.ForwarderServiceClient, *grpc.ClientConn, error)

ConnectOrStartDaemon connects to a running daemon or starts one (D-03, gopls pattern). The tp parameter provides an explicit TracerProvider for the otelgrpc client handler (D-01: no global TracerProvider).

func RunForwarder

func RunForwarder(ctx context.Context, socketPath string, logger *slog.Logger) error

RunForwarder starts the stdio-to-gRPC forwarder (DMN-03). It reads JSON-RPC from stdin, sends via gRPC to daemon, and writes responses to stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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