openapi

package
v0.0.0-...-bbc7b9f Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var DefaultOpenAPIBuildFunc = func(r courier.Router, fns ...BuildOptionFunc) *openapi.OpenAPI {
	if v, ok := cached.Load(r); ok {
		return v.(*openapi.OpenAPI)
	}
	o := FromRouter(r, fns...)
	cached.Store(r, o)
	return o
}

Functions

func FromRouter

func FromRouter(r courier.Router, fns ...BuildOptionFunc) *openapi.OpenAPI

Types

type BuildOptionFunc

type BuildOptionFunc func(o *buildOption)

func Naming

func Naming(naming func(t string) string) BuildOptionFunc

func (BuildOptionFunc) RuntimeDoc

func (BuildOptionFunc) RuntimeDoc(names ...string) ([]string, bool)

type CanResponseContent

type CanResponseContent interface {
	ResponseContent() any
}

type CanResponseContentType

type CanResponseContentType interface {
	ResponseContentType() string
}

type CanResponseErrors

type CanResponseErrors interface {
	ResponseErrors() []error
}

type CanResponseStatusCode

type CanResponseStatusCode interface {
	ResponseStatusCode() int
}

type CanRuntimeDoc

type CanRuntimeDoc interface {
	RuntimeDoc(names ...string) ([]string, bool)
}

type OpenAPIBuildFunc

type OpenAPIBuildFunc func(r courier.Router, fns ...BuildOptionFunc) *openapi.OpenAPI

func (OpenAPIBuildFunc) RuntimeDoc

func (OpenAPIBuildFunc) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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