overview

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

View Source
const Host = "siding.localhost"

Host is the overview's address on the proxy.

View Source
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

func IsLocalAddress(ip string) bool

IsLocalAddress reports whether ip is assigned to an interface of this machine.

func ListenAddrs

func ListenAddrs(hostAlias string) []string

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 Route

func Route(port int) []byte

Route is the Traefik dynamic configuration that sends Host to siding ui on port.

func WriteRoute

func WriteRoute(dir string, port int) (remove func() error, err error)

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.

Jump to

Keyboard shortcuts

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