@grand-board/otel-cloudflare - v6.11.0
GitHub
Preparing search index...
ExportedHandler
Interface ExportedHandler<Env, QueueMessage>
Cloudflare Workers ExportedHandler interface with generic queue message type
interface
ExportedHandler
<
Env
=
unknown
,
QueueMessage
=
unknown
>
{
fetch
?:
(
request
:
Request
,
env
:
Env
,
ctx
:
ExecutionContext
,
)
=>
Response
|
Promise
<
Response
>
;
queue
?:
(
batch
:
MessageBatch
<
QueueMessage
>
,
env
:
Env
,
ctx
:
ExecutionContext
,
)
=>
void
|
Promise
<
void
>
;
scheduled
?:
(
controller
:
ScheduledController
,
env
:
Env
,
ctx
:
ExecutionContext
,
)
=>
void
|
Promise
<
void
>
;
}
Type Parameters
Env
=
unknown
QueueMessage
=
unknown
Index
Properties
fetch?
queue?
scheduled?
Properties
Optional
fetch
fetch
?:
(
request
:
Request
,
env
:
Env
,
ctx
:
ExecutionContext
,
)
=>
Response
|
Promise
<
Response
>
Optional
queue
queue
?:
(
batch
:
MessageBatch
<
QueueMessage
>
,
env
:
Env
,
ctx
:
ExecutionContext
,
)
=>
void
|
Promise
<
void
>
Optional
scheduled
scheduled
?:
(
controller
:
ScheduledController
,
env
:
Env
,
ctx
:
ExecutionContext
,
)
=>
void
|
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
fetch
queue
scheduled
GitHub
@grand-board/otel-cloudflare - v6.11.0
Loading...
Cloudflare Workers ExportedHandler interface with generic queue message type