faast.js

faast.js

  • Docs
  • API
  • Community
  • GitHub
  • Blog

faastjs > FaastModule

FaastModule interface

The main interface for invoking, cleaning up, and managing faast.js cloud functions. Returned by faast().

Signature:

export interface FaastModule<M extends object> 

Properties

PropertyModifiersTypeDescription
functionsProxyModule<M>Each call of a cloud function creates a separate remote invocation.
functionsDetailProxyModuleDetail<M>Similar to FaastModule.functions except each function returns a Detail object
providerProviderSee Provider.

Methods

MethodDescription
cleanup(options)Stop the faast.js runtime for this cloud function and clean up ephemeral cloud resources.
costSnapshot()Get a near real-time cost estimate of cloud function invocations.
logUrl()The URL of logs generated by this cloud function.
off(name, listener)Deregister a callback for statistics events.
on(name, listener)Register a callback for statistics events.
stats(functionName)Statistics for a specific function or the entire faast.js module.
  • FaastModule interface
  • Properties
  • Methods
faast.js
Docs
IntroductionAPI ReferenceContributingExamples
Community
DiscordTwitterStack Overflowfaast.js
More
BlogUser Showcase
Copyright © 2023 Andy Chou