request

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertHandlers

func ConvertHandlers(handlers []HandlerFunc) (ginHandlers []gin.HandlerFunc)

Types

type Context

type Context interface {
	context.HttpContextor
	GinContext() *gin.Context
	SetAuthClaim(claims *jwt.UserClaims)
	SetIUserModel(iUser auth.IUser)
	auth.Context
	auth.RequestIUser
	appdb.DbManager
}

type Engine

type Engine struct {
	*gin.Engine
}

func New

func New() *Engine

func (*Engine) GinEngine

func (e *Engine) GinEngine() *gin.Engine

func (*Engine) Hash

func (e *Engine) Hash() EngineHash

func (*Engine) Use

func (e *Engine) Use(handlers ...HandlerFunc)

func (*Engine) UseGin

func (e *Engine) UseGin(handlerFunc ...gin.HandlerFunc)

type EngineHash

type EngineHash = string

type HandlerFunc

type HandlerFunc func(Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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