testapp

package
v1.41.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package testapp is the application the spectest end-to-end test runs the OpenAPI generator on and serves with Echo, so both helpers are checked against the generator's real output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(e *echo.Echo, h *Handler)

Routes registers the app's routes on e.

Types

type Handler

type Handler struct {
	*handler.BaseHandler
}

Handler holds the app's handler methods.

func (*Handler) CreateWidget

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

func (*Handler) GetFile

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

func (*Handler) GetWidget

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

func (*Handler) GetWidgetAdmin

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

func (*Handler) ListWidgets

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

func (*Handler) WidgetHistory

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

Directories

Path Synopsis
Package widgets is the module of the spectest test app: its request types, the functions that answer them and the models they return.
Package widgets is the module of the spectest test app: its request types, the functions that answer them and the models they return.

Jump to

Keyboard shortcuts

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