adminui

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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