request

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 6 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 {
	// http context
	context.HttpContextor

	GinContext() *gin.Context

	SetAuthClaim(claims *jwt.UserClaims) //@todo move into a new interface
	SetIUserModel(iUser auth.IUser)      //@todo move into a new interface

	auth.Context
	auth.RequestIUser
}

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