router

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClerkAuth

func ClerkAuth(secret, token string) echo.MiddlewareFunc

func New

func New(log *zap.Logger) (*echo.Echo, error)

func QueryDefaultInt added in v0.14.19

func QueryDefaultInt(c echo.Context, name string, def int) (int, error)

QueryDefaultInt retrieves an integer param from the gin request querystring defaults to def argument if not found

func QueryParamBool added in v0.14.19

func QueryParamBool(c echo.Context, name string) bool

QueryBool retrieves a boolean param from the gin request querystring

func QueryParamBoolDefault added in v0.14.19

func QueryParamBoolDefault(c echo.Context, name string, def string) bool

func QueryParamFloatDefault added in v0.14.19

func QueryParamFloatDefault(c echo.Context, name string, def string) float64

func QueryParamInt added in v0.14.19

func QueryParamInt(c echo.Context, name string) int

QueryParamInt retrieves an integer param from the gin request querystring

func QueryParamIntDefault added in v0.14.19

func QueryParamIntDefault(c echo.Context, name string, def string) int

func QueryParamString added in v0.14.19

func QueryParamString(c echo.Context, name string) string

QueryParamString retrieves a string param from the gin request querystring

func QueryParamStringDefault added in v0.14.19

func QueryParamStringDefault(c echo.Context, name string, def string) string

Types

type H added in v0.14.19

type H map[string]any

stolen from gin gonic H is a shortcut for map[string]any

func (H) MarshalXML added in v0.14.19

func (h H) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML allows type H to be used with xml.Marshal.

Jump to

Keyboard shortcuts

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