admin

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package admin is the emulator's control plane and embedded admin console. It exposes a simplified /admin REST API (instance CRUD, data browsers that reuse the data-plane engines, and API-key minting) and serves the static single-page console. Unlike the hosted console there are no sessions or CSRF — the emulator is a local, single-user dev tool, so /admin is open on localhost.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Reg   *control.Registry
	Auth  *auth.Store
	DS    *datastore.Manager
	Srch  *search.Manager
	Hub   *channel.Hub
	Ident *identity.Manager
	// contains filtered or unexported fields
}

Handler is the control-plane + console handler.

func NewHandler

func NewHandler(reg *control.Registry, a *auth.Store, ds *datastore.Manager, srch *search.Manager, hub *channel.Hub) *Handler

func (*Handler) Register

func (h *Handler) Register(mux *http.ServeMux)

Register mounts the admin API and the console (catch-all "/").

func (*Handler) WithIdentity

func (h *Handler) WithIdentity(m *identity.Manager) *Handler

WithIdentity enables the console's end-user browser for auth instances.

Jump to

Keyboard shortcuts

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