Documentation
¶
Overview ¶
Package webui is the optional read-only Web UI, embedded in the binary and served inside `ripen daemon`. It is off unless the policy turns it on.
Read-only is structural, not a setting: there is no handler that writes anything. The breaker banner shows the command to clear the breaker as text to copy, because clearing it is a decision an operator makes deliberately at a terminal, with a reason — not a button they can hit while looking at a red box.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
App *app.App
Address string
// Token guards a non-loopback bind. Empty is allowed only on
// loopback.
Token string
}
Options configures the Web UI.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the Web UI.
func New ¶
New builds the Web UI, refusing an exposed bind without a token. There is no insecure escape hatch: if Ripen is reachable from the network, something has to prove it is the operator.
func (*Server) Address ¶
Address is where the UI is listening, useful once a port was chosen for it.
func (*Server) ListenAndServe ¶
ListenAndServe runs the UI until the context ends.