Documentation
¶
Overview ¶
Package overview holds what siding ui needs besides the page: the route file through which siding-proxy reaches it, and the addresses it listens on.
Index ¶
Constants ¶
const Host = "siding.localhost"
Host is the overview's address on the proxy.
const RouteFileName = "ui.yml"
RouteFileName is the route file's name in the proxy's routes directory.
Variables ¶
This section is empty.
Functions ¶
func IsLocalAddress ¶
IsLocalAddress reports whether ip is assigned to an interface of this machine.
func ListenAddrs ¶
ListenAddrs are the addresses siding ui listens on: the loopback interface, and the proxy network's gateway when the proxy reaches this machine there. Never all interfaces.
func WriteRoute ¶
WriteRoute writes the route file into dir, replacing one a killed siding ui left behind, and returns the function that removes it. The file appears at once (write and rename), so the proxy never reads half of it.
Types ¶
This section is empty.