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