Documentation
¶
Index ¶
- Variables
- func AutoDocs(e *echolib.Echo, cfg goas.Config)
- func Bind(c echolib.Context, v interface{}) error
- func Docs(e *echolib.Echo, cfg goas.Config)
- func JSON(c echolib.Context, code int, v interface{}) error
- func Register(r *Router, cfg goas.Config)
- type Group
- func (g *Group) DELETE(p string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (g *Group) GET(p string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (g *Group) Handle(method, p string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (g *Group) PATCH(p string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (g *Group) POST(p string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (g *Group) PUT(p string, h echolib.HandlerFunc, opts ...HandlerOption)
- type HandlerOption
- type Router
- func (r *Router) DELETE(path string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (r *Router) Docs(cfg goas.Config)
- func (r *Router) GET(path string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (r *Router) Group(prefix string, opts ...HandlerOption) *Group
- func (r *Router) HEAD(path string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (r *Router) Handle(method, path string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (r *Router) OPTIONS(path string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (r *Router) PATCH(path string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (r *Router) POST(path string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (r *Router) PUT(path string, h echolib.HandlerFunc, opts ...HandlerOption)
- func (r *Router) Routes() []goas.RouteMeta
- type SecurityRequirement
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithRequestSchema = goas.WithRequestSchema WithResponseSchema = goas.WithResponseSchema WithSecurity = goas.WithSecurity WithTags = goas.WithTags WithResponses = goas.WithResponses WithQueryParams = goas.WithQueryParams Req = goas.Req MultipartUpload = goas.MultipartUpload Res = goas.Res Tags = goas.Tags Security = goas.Security Query = goas.Query Headers = goas.Headers Status = goas.Status Created = goas.Created NoContent = goas.NoContent Responses = goas.Responses JSONRoute = goas.JSONRoute )
Functions ¶
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group allows applying shared options (e.g., tags/security) and a common path prefix.
func (*Group) DELETE ¶
func (g *Group) DELETE(p string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Group) GET ¶
func (g *Group) GET(p string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Group) Handle ¶
func (g *Group) Handle(method, p string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Group) PATCH ¶
func (g *Group) PATCH(p string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Group) POST ¶
func (g *Group) POST(p string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Group) PUT ¶
func (g *Group) PUT(p string, h echolib.HandlerFunc, opts ...HandlerOption)
type HandlerOption ¶
type HandlerOption = goas.HandlerOption
type Router ¶
func NewEchoAdapters ¶
NewEchoAdapters wraps an existing *echo.Echo into the adapter Router so callers who create their own echo server (e.g., echo.New() or echo.Default()) can use the adapter.
func (*Router) DELETE ¶
func (r *Router) DELETE(path string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Router) GET ¶
func (r *Router) GET(path string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Router) HEAD ¶
func (r *Router) HEAD(path string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Router) Handle ¶
func (r *Router) Handle(method, path string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Router) OPTIONS ¶
func (r *Router) OPTIONS(path string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Router) PATCH ¶
func (r *Router) PATCH(path string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Router) POST ¶
func (r *Router) POST(path string, h echolib.HandlerFunc, opts ...HandlerOption)
func (*Router) PUT ¶
func (r *Router) PUT(path string, h echolib.HandlerFunc, opts ...HandlerOption)
type SecurityRequirement ¶
type SecurityRequirement = openapi3.SecurityRequirement
Click to show internal directories.
Click to hide internal directories.