Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DaemonRunning ¶
DaemonRunning reports whether the machine-wide proxy daemon is alive.
func EnsureDaemon ¶
EnsureDaemon starts the machine-wide proxy daemon as a detached process if one is not already running, and returns true if it started a new one. The daemon is `isola proxy start`; its output goes to proxy.log under the registry's global dir, and it survives this process exiting.
func ParseHost ¶
ParseHost splits a Host header into slug and project for the qualified scheme "<slug>.<project>.localhost[:port]". A bare "<slug>.localhost" yields an empty project; "localhost" (or a non-.localhost host) yields both empty. Slugs and project names are single DNS labels, so the label before ".localhost" is the project and the one before that is the slug.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon is the single machine-wide reverse proxy. It binds the union of every registered project's proxy ports and routes <slug>.<project>.localhost to that project's backends, resolving live from each project's own state.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver maps slug + proxy_port to real backend port.
func NewResolver ¶
NewResolver creates a new Resolver.