chai

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect[Res any, Err chai.ErrType](r *mux.Router, path string, fn chai.ResHandlerFunc[Res, Err])

func Delete

func Delete[Req any, Res any, Err chai.ErrType](r *mux.Router, path string, fn chai.ReqResHandlerFunc[Req, Res, Err])

func Get

func Get[Res any, Err chai.ErrType](r *mux.Router, path string, fn chai.ResHandlerFunc[Res, Err])

func OpenAPI2

func OpenAPI2(r *mux.Router) (*spec.Swagger, error)

func OpenAPI3

func OpenAPI3(r *mux.Router) (*kinopenapi3.T, error)

func Options

func Options[Res any, Err chai.ErrType](r *mux.Router, path string, fn chai.ResHandlerFunc[Res, Err])

func Patch

func Patch[Req any, Res any, Err chai.ErrType](r *mux.Router, path string, fn chai.ReqResHandlerFunc[Req, Res, Err])

func Post

func Post[Req any, Res any, Err chai.ErrType](r *mux.Router, path string, fn chai.ReqResHandlerFunc[Req, Res, Err])

func Put

func Put[Req any, Res any, Err chai.ErrType](r *mux.Router, path string, fn chai.ReqResHandlerFunc[Req, Res, Err])

Types

This section is empty.

Jump to

Keyboard shortcuts

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