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.
Click to show internal directories.
Click to hide internal directories.