Documentation ¶
Index ¶
- func InitReflector(port int, addresses []string, opts *OASOptions) *openapi3.Reflector
- func WithOIDC(ref *openapi3.Reflector, url, client, secret string)
- type OASOptions
- type Route
- func Delete[T interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
- func Get[T interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
- func Patch[T interface{}, D interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
- func Post[T interface{}, D interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
- func Put[T interface{}, D interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitReflector ¶
func InitReflector(port int, addresses []string, opts *OASOptions) *openapi3.Reflector
InitReflector ...
Types ¶
type OASOptions ¶
type OASOptions struct { Title string Description string Version string OASVersion string AuthURL string AuthClient string AuthSecret string }
OASOptions ...
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is a structure for holding data for building OpenAPI spec and handling requests
func Delete ¶
func Delete[T interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
Delete creates a DELETE route
func Get ¶
func Get[T interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
Get creates a GET route
func Patch ¶
func Patch[T interface{}, D interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
Patch creates a PATCH route
func Post ¶
func Post[T interface{}, D interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
Post creates a POST route
func Put ¶
func Put[T interface{}, D interface{}](path string, handlerFunc echo.HandlerFunc, handlers ...echo.MiddlewareFunc) *Route
Put creates a PUT route
func (*Route) Description ¶
Description add tags for the route
Click to show internal directories.
Click to hide internal directories.