router

package
v0.15.0 Latest Latest
Warning

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

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

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

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

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

QueryBool retrieves a boolean param from the gin request querystring

func QueryParamBoolDefault

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

func QueryParamFloatDefault

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

func QueryParamInt

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

QueryParamInt retrieves an integer param from the gin request querystring

func QueryParamIntDefault

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

func QueryParamString

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

QueryParamString retrieves a string param from the gin request querystring

func QueryParamStringDefault

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

Types

type H

type H map[string]any

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

func (H) MarshalXML

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