spec

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package spec provides the config-first OpenAPI route specification builder.

It is the recommended import path for keeping handler registration clean while declaring request/response schemas, tags, security, and parameters in one place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inject

func Inject(opts []goas.HandlerOption, def RouteDef) []goas.HandlerOption

func Key

func Key(method, path string) string

Types

type Builder

type Builder = oas.Builder

func New

func New() *Builder

func NewSpec

func NewSpec() *Builder

type EchoRouter

type EchoRouter = oas.EchoRouter

func Echo

func Echo(base *echoadapter.Router, s Spec) *EchoRouter

func NewEchoRouter

func NewEchoRouter(base *echoadapter.Router, s Spec) *EchoRouter

type FiberRouter

type FiberRouter = oas.FiberRouter

func Fiber

func Fiber(base *fiberadapter.Router, s Spec) *FiberRouter

func NewFiberRouter

func NewFiberRouter(base *fiberadapter.Router, s Spec) *FiberRouter

type GinRouter

type GinRouter = oas.GinRouter

func Gin

func Gin(base *ginadapter.Router, s Spec) *GinRouter

func NewGinRouter

func NewGinRouter(base *ginadapter.Router, s Spec) *GinRouter

type HTTPRouter

type HTTPRouter = oas.Router

func HTTP

func HTTP(base *goas.Router, s Spec) *HTTPRouter

func NewHTTPRouter

func NewHTTPRouter(base *goas.Router, s Spec) *HTTPRouter

type RouteBuilder

type RouteBuilder = oas.RouteBuilder

type RouteDef

type RouteDef = oas.RouteDef

type Spec

type Spec = oas.Spec

type SpecBuilder

type SpecBuilder = oas.SpecBuilder

Jump to

Keyboard shortcuts

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