Documentation ¶
Index ¶
- func NewGinEngine(ginEngine *gin.Engine, opts ...engine.Option) engine.AdapterEngine
- type GinContext
- func (ctx *GinContext) Bind(obj interface{}) error
- func (ctx *GinContext) Close()
- func (ctx *GinContext) Context() context.Context
- func (ctx *GinContext) GetImpl() interface{}
- func (ctx *GinContext) Header(key string) string
- func (ctx *GinContext) Log() log.Logger
- func (ctx *GinContext) LogOptions() *log.Options
- func (ctx *GinContext) Meta() map[string]interface{}
- func (ctx *GinContext) Request() vctx.Request
- func (ctx *GinContext) ResetContext(nctx context.Context)
- func (ctx *GinContext) Response() vctx.Response
- func (ctx *GinContext) ServerName() string
- func (ctx *GinContext) ServerType() string
- type GinEngine
- func (e *GinEngine) GetImpl() any
- func (e *GinEngine) Handle(method string, path string, callfunc engine.HandlerFunc)
- func (e *GinEngine) HandleRequest(req engine.Request, resp engine.ResponseWriter) (err error)
- func (e *GinEngine) NoMethod()
- func (e *GinEngine) NoRoute()
- func (e *GinEngine) Write(ctx context.Context, resp interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGinEngine ¶
Types ¶
type GinContext ¶
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
Click to show internal directories.
Click to hide internal directories.