gin

package
v0.5.18 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGinEngine

func NewGinEngine(ginEngine *gin.Engine, opts ...engine.Option) engine.AdapterEngine

Types

type GinContext

type GinContext struct {
	Gctx *gin.Context
	// contains filtered or unexported fields
}

func (*GinContext) Bind

func (ctx *GinContext) Bind(obj interface{}) error

func (*GinContext) Close

func (ctx *GinContext) Close()

func (*GinContext) Context

func (ctx *GinContext) Context() context.Context

func (*GinContext) GetImpl

func (ctx *GinContext) GetImpl() interface{}

func (*GinContext) Header

func (ctx *GinContext) Header(key string) string

func (*GinContext) Log

func (ctx *GinContext) Log() log.Logger

func (*GinContext) LogOptions

func (ctx *GinContext) LogOptions() *log.Options

func (*GinContext) Meta

func (ctx *GinContext) Meta() map[string]interface{}

func (*GinContext) Request

func (ctx *GinContext) Request() vctx.Request

func (*GinContext) ResetContext

func (ctx *GinContext) ResetContext(nctx context.Context)

func (*GinContext) Response

func (ctx *GinContext) Response() vctx.Response

func (*GinContext) ServerName

func (ctx *GinContext) ServerName() string

func (*GinContext) ServerType

func (ctx *GinContext) ServerType() string

type GinEngine

type GinEngine struct {
	Engine *gin.Engine
	// contains filtered or unexported fields
}

func (*GinEngine) GetImpl

func (e *GinEngine) GetImpl() any

func (*GinEngine) Handle

func (e *GinEngine) Handle(method string, path string, callfunc engine.HandlerFunc)

func (*GinEngine) HandleRequest

func (e *GinEngine) HandleRequest(req engine.Request, resp engine.ResponseWriter) (err error)

func (*GinEngine) NoMethod

func (e *GinEngine) NoMethod()

func (*GinEngine) NoRoute

func (e *GinEngine) NoRoute()

func (*GinEngine) Write

func (e *GinEngine) Write(ctx context.Context, resp interface{})

Jump to

Keyboard shortcuts

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