adminui

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package adminui serves the admin web interface under /_ui/. The built assets (ui/admin, `npm run build`) are embedded from dist/; a Go build without them still compiles, and Handler then returns nil so /_ui/ answers 404 like any unknown route.

Index

Constants

View Source
const Prefix = "/_ui"

Prefix is where the interface is served.

Variables

This section is empty.

Functions

func Handler

func Handler(idle time.Duration, imageOrigins ...string) http.Handler

Handler serves the embedded interface, or returns nil when this build has no assets. idle is the sign-out timeout handed to the page. imageOrigins are the origins (scheme://host:port) of the realms' file storage, the only places besides itself the page may load images from and send direct uploads to: previews and uploads of files go through links backd signed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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