devui

package
v3.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package devui provides devui functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Method   string
	Path     string
	Template string
}

Endpoint represents an IDP endpoint for the dev UI list.

type Handler

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

Handler handles the development UI for previewing templates.

func New

func New(deps *deps.Deps) *Handler

New returns a new Handler.

func (*Handler) GetVersion

func (h *Handler) GetVersion(ctx *gin.Context)

GetVersion returns the current template version.

func (*Handler) Index

func (h *Handler) Index(ctx *gin.Context)

Index renders the main dev UI page.

func (*Handler) Register

func (h *Handler) Register(router gin.IRouter)

Register adds the dev UI routes to the router.

func (*Handler) RenderTemplate

func (h *Handler) RenderTemplate(ctx *gin.Context)

RenderTemplate renders a specific template with dummy data.

Jump to

Keyboard shortcuts

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