admin

package
v0.0.0-...-dac86b4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package admin provides the built-in workflow admin UI configuration. When enabled via the --admin flag, the admin modules and routes are merged into the primary workflow engine, adding an authenticated management interface on a separate port (:8081 by default).

The admin UI dogfoods the workflow engine: it uses the engine's own modules (http.server, http.router, auth.jwt, http.handler, static.fileserver) configured via an embedded YAML config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectUIRoot

func InjectUIRoot(cfg *config.WorkflowConfig, uiRoot string)

InjectUIRoot updates the admin static.fileserver module config to serve from the given root directory. This should be called after LoadConfig and before MergeInto.

func LoadConfig

func LoadConfig() (*config.WorkflowConfig, error)

LoadConfig parses the embedded admin config and returns it.

func LoadConfigRaw

func LoadConfigRaw() ([]byte, error)

LoadConfigRaw returns the raw embedded admin config YAML bytes.

func MergeInto

func MergeInto(primary *config.WorkflowConfig, admin *config.WorkflowConfig)

MergeInto merges admin modules and workflows into the primary config. Admin modules are appended to the primary module list. Admin workflows use a separate key ("http-admin") so they don't conflict with the primary HTTP workflow — each gets its own router and server.

func WriteUIAssets

func WriteUIAssets() (string, error)

WriteUIAssets extracts the embedded React UI assets to a temp directory and returns the path. The caller should ensure the directory is cleaned up on shutdown. The returned path is suitable for use as the root of a static.fileserver module.

Types

This section is empty.

Jump to

Keyboard shortcuts

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