dashboard

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package dashboard provides the embedded admin dashboard UI for GoModel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler serves the admin dashboard UI.

func NewWithBasePath

func NewWithBasePath(basePath string) (*Handler, error)

NewWithBasePath creates a dashboard handler for an app mounted under basePath. It parses templates and sets up the static file server.

func NewWithDemoMode added in v0.1.55

func NewWithDemoMode(basePath string, demoMode bool) (*Handler, error)

NewWithDemoMode creates a dashboard handler and controls whether the demo warning is rendered in the main content area.

func (*Handler) Index

func (h *Handler) Index(c *echo.Context) error

Index serves GET /admin/dashboard — the main dashboard page.

func (*Handler) Static

func (h *Handler) Static(c *echo.Context) error

Static serves GET /admin/static/* — embedded CSS/JS assets.

Jump to

Keyboard shortcuts

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