adminui

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Overview

Package adminui provides separately rendered tenant editing and platform administration surfaces. The host must authorize each mount and tenant route.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler defaults to content editing. Platform controls require an explicit Platform mode mount; they are absent from the editor document entirely.

func HandlerWithOptions added in v0.1.6

func HandlerWithOptions(options Options) http.Handler

Types

type Mode added in v0.1.6

type Mode string
const (
	Editor   Mode = "editor"
	Platform Mode = "platform"
)

type Options added in v0.1.6

type Options struct {
	Mode     Mode
	BasePath string
}

type Route added in v0.1.6

type Route struct {
	TenantID, PageID int64
	View             string
	Section          int
	NewPage          bool
}

Route is the canonical UI context, also used by the host's authorization gate.

func ParseRoute added in v0.1.6

func ParseRoute(mode Mode, path string) (Route, bool)

ParseRoute accepts only declared view routes. Numeric IDs must be canonical; assets and arbitrary suffixes are never interpreted as tenant views.

Jump to

Keyboard shortcuts

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