| 26 | * the framework. |
| 27 | */ |
| 28 | export interface FrameworkOptions { |
| 29 | /** |
| 30 | * The port on which this server listens to all HTTP requests. |
| 31 | */ |
| 32 | port: string; |
| 33 | /** |
| 34 | * The name of the function within user's node module to execute. If such a |
| 35 | * function is not defined, then falls back to 'function' name. |
| 36 | */ |
| 37 | target: string; |
| 38 | /** |
| 39 | * The path to the source code file containing the client function. |
| 40 | */ |
| 41 | sourceLocation: string; |
| 42 | /** |
| 43 | * The signature type of the client function. |
| 44 | */ |
| 45 | signatureType: SignatureType; |
| 46 | /** |
| 47 | * Whether or not the --help CLI flag was provided. |
| 48 | */ |
| 49 | printHelp: boolean; |
| 50 | /** |
| 51 | * Whether or not to enable execution id support. |
| 52 | */ |
| 53 | enableExecutionId: boolean; |
| 54 | /** |
| 55 | * The request timeout. |
| 56 | */ |
| 57 | timeoutMilliseconds: number; |
| 58 | /** |
| 59 | * Routes that should return a 404 without invoking the function. |
| 60 | */ |
| 61 | ignoredRoutes: string | null; |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Helper class for parsing an configurable option from provided CLI flags |
nothing calls this directly
no outgoing calls
no test coverage detected