httprouter

package
v0.0.0-...-5cf7af6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 20 Imported by: 2

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.HandlerMiddleware) (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) ([]RouteHandler, error)

Jump to

Keyboard shortcuts

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