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 ¶
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.