FaastModuleProxy class
Implementation of FaastModule.
Signature:
export declare class FaastModuleProxy<M extends object, O extends CommonOptions, S> implements FaastModule<M>
Implements: FaastModule<M>
Remarks
FaastModuleProxy
provides a unified developer experience for faast.js modules on top of provider-specific runtime APIs. Most users will not create FaastModuleProxy
instances themselves; instead use faast(), or faastAws() or faastLocal(). FaastModuleProxy
implements the FaastModule interface, which is the preferred public interface for faast modules. FaastModuleProxy
can be used to access provider-specific details and state, and is useful for deeper testing.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the FaastModuleProxy
class.
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
ProxyModule<M> |
Each call of a cloud function creates a separate remote invocation. | ||
Similar to FaastModule.functions except each function returns a Detail object | |||
|
Required<CommonOptions> |
The options set for this instance, which includes default values. | |
The Provider, e.g. "aws". |
Methods
Method |
Modifiers |
Description |
---|---|---|
Stop the faast.js runtime for this cloud function and clean up ephemeral cloud resources. | ||
Get a near real-time cost estimate of cloud function invocations. | ||
The URL of logs generated by this cloud function. | ||
Deregister a callback for statistics events. | ||
Register a callback for statistics events. | ||
Statistics for a specific function or the entire faast.js module. |