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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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