socket

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package socket defines the addressing contract for the proxy's local unix socket. The proxy listens on it and the inbound server dials it, both deriving the same path from the upstream host:port. It depends on no other internal packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnixPath

func UnixPath(hostPort string) (string, error)

UnixPath derives a stable, absolute unix socket path for hostPort, placed under os.TempDir(). It is deterministic for a given hostPort within a process so the proxy (which listens) and the inbound server (which dials) compute the same value. It returns an error when the resulting path would exceed the platform's sun_path limit, rather than letting the OS silently truncate it (which would break the proxy/server agreement).

Types

This section is empty.

Jump to

Keyboard shortcuts

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