statuspage

package
v1.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Package statuspage is the one look of the small static pages the laboratory serves to a browser: the VPN check page inside the tunnel and the proxy's error cards. Style, theme switch and its script live here once.

Index

Constants

View Source
const Rule template.HTML = `<span class="rule" aria-hidden="true"></span>`

Rule is the short brand-colour line under the title.

Variables

This section is empty.

Functions

func Favicon

func Favicon() template.URL

Favicon is the platform icon (32x32 PNG) as a data URI for <link rel="icon">: the pages cannot load it from a platform host.

func Icon

func Icon(s State) template.HTML

Icon is the state icon (56px circle, 28px glyph); the title is the caller's and the brand Rule goes under it.

func Script

func Script() template.JS

Script is the theme switch script.

func Style

func Style() template.CSS

Style is the shared CSS (inline, no external hosts).

func Theme

func Theme(lang string) template.HTML

Theme is the light/dark/system switch with the labels in the page language ("en", anything else is Ukrainian).

Types

type State

type State string

State is the kind of a card: it picks the icon colour and glyph.

const (
	// StateOK is a success (VPN connected): green check.
	StateOK State = "ok"
	// StateWait is a card that asks the visitor to act or wait (session ended, too many requests,
	// the task not ready): amber clock.
	StateWait State = "warn"
	// StateUnavailable is a card for something that is not there or broke (task not available, bad host,
	// internal error): red slashed circle.
	StateUnavailable State = "danger"
	// StateLoading is a card for something that is on its way (a lab that is starting): the platform crest, softly
	// pulsing, in place of a glyph. The page refreshes itself, the crest is the loader.
	StateLoading State = "loading"
)

Jump to

Keyboard shortcuts

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