extgin

package
v0.0.0-...-e5be028 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStd

func NewStd() *gin.Engine

func ParamOptionalInt

func ParamOptionalInt(ctx *gin.Context, paramName string, def int) (int, error)

func ParamString

func ParamString(ctx *gin.Context, paramName string) (string, error)

func QueryInt

func QueryInt(ctx *gin.Context, paramName string) (int, error)

func QueryOptionalInt

func QueryOptionalInt(ctx *gin.Context, paramName string, def int) (int, error)

TODO: monitor default proposal use new binduri https://github.com/gin-gonic/gin/issues/1898

func QueryOptionalTime

func QueryOptionalTime(ctx *gin.Context, paramName string, def time.Time) (time.Time, error)

func QueryString

func QueryString(ctx *gin.Context, paramName string) (string, error)

func QueryTime

func QueryTime(ctx *gin.Context, paramName string) (time.Time, error)

Types

type ControllerGroup

type ControllerGroup interface {
	GetControllers() []Registerer
}

type Registerer

type Registerer interface {
	Register(s *gin.RouterGroup)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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