Documentation ¶
Index ¶
- type FetchEvent
- func (evt *FetchEvent) Delete(key string) bool
- func (evt *FetchEvent) EnableFetch()
- func (evt *FetchEvent) Exception(err error)
- func (evt *FetchEvent) Get(key string) goja.Value
- func (evt *FetchEvent) Has(key string) bool
- func (evt *FetchEvent) Keys() []string
- func (evt *FetchEvent) NativeObject() goja.Value
- func (evt *FetchEvent) Reject() goja.Value
- func (evt *FetchEvent) Resolve() goja.Value
- func (evt *FetchEvent) Set(key string, val goja.Value) bool
- func (evt *FetchEvent) Wait()
- func (evt *FetchEvent) WithHttp(w http.ResponseWriter, r *http.Request, next http.Handler) *FetchEvent
- type FetchEventDeps
- type FetchEventPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchEvent ¶
type FetchEvent struct {
// contains filtered or unexported fields
}
func (*FetchEvent) Delete ¶
func (evt *FetchEvent) Delete(key string) bool
func (*FetchEvent) EnableFetch ¶
func (evt *FetchEvent) EnableFetch()
func (*FetchEvent) Exception ¶
func (evt *FetchEvent) Exception(err error)
func (*FetchEvent) Has ¶
func (evt *FetchEvent) Has(key string) bool
func (*FetchEvent) Keys ¶
func (evt *FetchEvent) Keys() []string
func (*FetchEvent) NativeObject ¶
func (evt *FetchEvent) NativeObject() goja.Value
func (*FetchEvent) Reject ¶
func (evt *FetchEvent) Reject() goja.Value
func (*FetchEvent) Resolve ¶
func (evt *FetchEvent) Resolve() goja.Value
func (*FetchEvent) Wait ¶
func (evt *FetchEvent) Wait()
func (*FetchEvent) WithHttp ¶
func (evt *FetchEvent) WithHttp(w http.ResponseWriter, r *http.Request, next http.Handler) *FetchEvent
type FetchEventDeps ¶
type FetchEventDeps struct { Logger *zap.Logger Symbols *polyfill.RuntimeSymbols Eventloop *eventloop.EventLoop Stream *stream.StreamController Resolver *promise.PromiseResolver Fetch *fetch.Fetch KV *kv.KVManager }
type FetchEventPool ¶
type FetchEventPool struct {
// contains filtered or unexported fields
}
func NewFetchEventPool ¶
func NewFetchEventPool(deps FetchEventDeps) *FetchEventPool
func (*FetchEventPool) Get ¶
func (p *FetchEventPool) Get(t *common.IOContext) *FetchEvent
Click to show internal directories.
Click to hide internal directories.