Anchorage API reference
Documentation
GitHub
Preparing search index...
@proofoftech/flowsafe
host-kit
FlowsafeWorker
Interface FlowsafeWorker<Env>
The handler triple a host re-exports (behind its own workers-typed casts).
interface
FlowsafeWorker
<
Env
extends
FlowsafeWorkerEnv
>
{
fetch
(
request
:
Request
,
env
:
Env
,
ctx
:
FlowsafeWorkerContext
,
)
:
Promise
<
Response
>
;
queue
(
batch
:
AuditMessageBatch
<
unknown
>
,
env
:
Env
)
:
Promise
<
void
>
;
scheduled
(
controller
:
{
cron
:
string
}
,
env
:
Env
,
ctx
:
FlowsafeWorkerContext
,
)
:
Promise
<
void
>
;
}
Type Parameters
Env
extends
FlowsafeWorkerEnv
Index
Methods
fetch
queue
scheduled
Methods
fetch
fetch
(
request
:
Request
,
env
:
Env
,
ctx
:
FlowsafeWorkerContext
)
:
Promise
<
Response
>
Parameters
request
:
Request
env
:
Env
ctx
:
FlowsafeWorkerContext
Returns
Promise
<
Response
>
queue
queue
(
batch
:
AuditMessageBatch
<
unknown
>
,
env
:
Env
)
:
Promise
<
void
>
Parameters
batch
:
AuditMessageBatch
<
unknown
>
env
:
Env
Returns
Promise
<
void
>
scheduled
scheduled
(
controller
:
{
cron
:
string
}
,
env
:
Env
,
ctx
:
FlowsafeWorkerContext
,
)
:
Promise
<
void
>
Parameters
controller
:
{
cron
:
string
}
env
:
Env
ctx
:
FlowsafeWorkerContext
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Methods
fetch
queue
scheduled
Documentation
GitHub
Anchorage API reference
Loading...
The handler triple a host re-exports (behind its own workers-typed casts).