webtty

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package webtty mounts a browser-based terminal under /tools/webtty. It proxies HTTP + WebSocket to an embedded gotty process — no extra port is exposed outside the host.

The tool is admin-only (System tag) and can be toggled on/off via the Enabled config flag without a redeploy.

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

View Source
var StaticFS embed.FS

Functions

func IndexBody

func IndexBody(basePath string, enabled bool) templ.Component

func Register

func Register(r tool.Router)

Register wires webtty routes on the scoped Router.

Types

type Config

type Config struct {
	// Enabled controls whether the terminal is accessible. When false,
	// the tool page shows a disabled notice instead of the terminal.
	Enabled bool `wick:"desc=Enable or disable the web terminal. When disabled, the page shows a notice instead of the terminal.;checkbox"`
}

Config holds the runtime-editable knobs for the web terminal tool.

Jump to

Keyboard shortcuts

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