Documentation ¶
Index ¶
- type RequestContext
- func (ctx *RequestContext) Delete(key string) bool
- func (ctx *RequestContext) EnableFetch()
- func (ctx *RequestContext) Exception(err error)
- func (ctx *RequestContext) Get(key string) goja.Value
- func (ctx *RequestContext) Has(key string) bool
- func (ctx *RequestContext) Keys() []string
- func (ctx *RequestContext) NativeObject() goja.Value
- func (ctx *RequestContext) Reject() goja.Value
- func (ctx *RequestContext) Resolve() goja.Value
- func (ctx *RequestContext) Set(_ string, _ goja.Value) bool
- func (ctx *RequestContext) Wait()
- func (ctx *RequestContext) WithHttp(w http.ResponseWriter, r *http.Request, next http.Handler) *RequestContext
- type RequestContextDeps
- type RequestContextPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestContext ¶
type RequestContext struct {
// contains filtered or unexported fields
}
func (*RequestContext) Delete ¶
func (ctx *RequestContext) Delete(key string) bool
func (*RequestContext) EnableFetch ¶
func (ctx *RequestContext) EnableFetch()
func (*RequestContext) Exception ¶
func (ctx *RequestContext) Exception(err error)
func (*RequestContext) Has ¶
func (ctx *RequestContext) Has(key string) bool
func (*RequestContext) Keys ¶
func (ctx *RequestContext) Keys() []string
func (*RequestContext) NativeObject ¶
func (ctx *RequestContext) NativeObject() goja.Value
func (*RequestContext) Reject ¶
func (ctx *RequestContext) Reject() goja.Value
func (*RequestContext) Resolve ¶
func (ctx *RequestContext) Resolve() goja.Value
func (*RequestContext) Wait ¶
func (ctx *RequestContext) Wait()
func (*RequestContext) WithHttp ¶
func (ctx *RequestContext) WithHttp(w http.ResponseWriter, r *http.Request, next http.Handler) *RequestContext
type RequestContextDeps ¶
type RequestContextPool ¶
type RequestContextPool struct {
// contains filtered or unexported fields
}
func NewRequestContextPool ¶
func NewRequestContextPool(deps RequestContextDeps) *RequestContextPool
func (*RequestContextPool) Get ¶
func (p *RequestContextPool) Get(t *common.IOContext) *RequestContext
Click to show internal directories.
Click to hide internal directories.