controllers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package controllers provides route mutation fixtures whose runtime behavior must match indexed output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct{}

Controller provides the runtime route mutation used by index soundness tests.

func (*Controller) Protected

func (c *Controller) Protected(ctx web.Context) error

Protected returns the response associated with the discarded protected route.

func (*Controller) Public

func (c *Controller) Public(ctx web.Context) error

Public returns the response associated with the actual runtime route.

func (*Controller) RequireAuth

func (c *Controller) RequireAuth(next web.Handler) web.Handler

RequireAuth supplies the middleware whose stale provenance must never reach OpenAPI.

func (*Controller) Routes

func (c *Controller) Routes() []web.Route

Routes replaces a protected route in place so stale constructor tracking would describe a different runtime API.

Jump to

Keyboard shortcuts

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