httprouter

package
v0.0.0-...-1be23ea Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 24 Imported by: 3

Documentation

Overview

Package httprouter GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cr courier.Router, service string, routeMiddlewares ...handler.Middleware) (http.Handler, error)

func SetOpenAPIViewContents

func SetOpenAPIViewContents(u transport.Upgrader)

Types

type OpenAPI

type OpenAPI struct {
	courierhttp.MethodGet
}

func (*OpenAPI) Output

func (o *OpenAPI) Output(ctx context.Context) (any, error)

func (*OpenAPI) ResponseContentType

func (o *OpenAPI) ResponseContentType() string

func (OpenAPI) RuntimeDoc

func (v OpenAPI) RuntimeDoc(names ...string) ([]string, bool)

type OpenAPIView

type OpenAPIView struct {
	courierhttp.MethodGet `path:"/_view/{href...}"`
}

func (*OpenAPIView) Output

func (o *OpenAPIView) Output(ctx context.Context) (any, error)

func (OpenAPIView) RuntimeDoc

func (v OpenAPIView) RuntimeDoc(names ...string) ([]string, bool)

type RouteHandler

type RouteHandler = request.RouteHandler

func NewRouteHandlers

func NewRouteHandlers(route courier.Route, service string, routeMiddlewares ...handler.Middleware) ([]RouteHandler, error)

Jump to

Keyboard shortcuts

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