Documentation ¶
Index ¶
- func NewStd() *gin.Engine
- func ParamInt(ctx *gin.Context, paramName string) (int, error)
- func ParamOptionalInt(ctx *gin.Context, paramName string, def int) (int, error)
- func ParamString(ctx *gin.Context, paramName string) (string, error)
- func QueryInt(ctx *gin.Context, paramName string) (int, error)
- func QueryOptionalInt(ctx *gin.Context, paramName string, def int) (int, error)
- func QueryOptionalTime(ctx *gin.Context, paramName string, def time.Time) (time.Time, error)
- func QueryString(ctx *gin.Context, paramName string) (string, error)
- func QueryTime(ctx *gin.Context, paramName string) (time.Time, error)
- type ControllerGroup
- type Registerer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParamInt ¶
TODO: investigate new binding uri https://github.com/gin-gonic/gin/blob/f98b339b773105aad77f321d0baaa30475bf875d/binding/binding.go#L41
func ParamOptionalInt ¶
func QueryOptionalInt ¶
TODO: monitor default proposal use new binduri https://github.com/gin-gonic/gin/issues/1898
func QueryOptionalTime ¶
Types ¶
type ControllerGroup ¶
type ControllerGroup interface {
GetControllers() []Registerer
}
type Registerer ¶
type Registerer interface {
Register(s *gin.RouterGroup)
}
Click to show internal directories.
Click to hide internal directories.