You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| resourcePath | false | string | defines which documents in the db should be published when changed ex: `'posts/{id}'` (uses the cloud functions firestore triggers syntax) |
113
-
| schema | false | object | should contain a reference to the `require`d schema file |
114
-
| postSchema | false | object | optional alternative used for services that require special fields during creation |
115
-
| publishChanges | false | boolean | whether the service should publish changes to it's data as messages on cloud pub sub |
116
-
| withModifiers | false | boolean | declares that the schema can contain `writeModifier` keys that define a function that will modify values before they are processes/saved |
117
-
| middleware | false | Array | ExpressJs middleware that will apply to all routes in the service |
118
-
| routes | false | Array | these are the functions triggered within the service by http requests (see routes below) |
119
-
| events | false | Array | pub sub events that the service will listed to (see events below) |
120
-
| schedule | false | Array | cloud schedules that will trigger functions within this service (see schedule below) |
121
-
| keepAlive | false | boolean | whether a scheduled function should be set up that will trigger the http function (routes) every 5 minutes to prevent cold starts\*|
122
-
| runtimeOptions | false | object | An object containing 2 optional properties. `memory`: amount of memory to allocate to the function, possible values are: '128MB', '256MB', '512MB', '1GB', and '2GB'. `timeoutSeconds`: timeout for the function in seconds, possible values are 0 to 540. |
| resourcePath | false | string | defines which documents in the db should be published when changed ex: `'posts/{id}'` (uses the cloud functions firestore triggers syntax) |
113
+
| schema | false | object | should contain a reference to the `require`d schema file |
114
+
| postSchema | false | object | optional alternative used for services that require special fields during creation |
115
+
| publishChanges | false | boolean | whether the service should publish changes to it's data as messages on cloud pub sub |
116
+
| withModifiers | false | boolean | declares that the schema can contain `writeModifier` keys that define a function that will modify values before they are processes/saved |
117
+
| middleware | false | Array | ExpressJs middleware that will apply to all routes in the service |
118
+
| routes | false | Array | these are the functions triggered within the service by http requests (see routes below) |
119
+
| events | false | Array | pub sub events that the service will listed to (see events below) |
120
+
| schedule | false | Array | cloud schedules that will trigger functions within this service (see schedule below) |
121
+
| keepAlive | false | boolean | whether a scheduled function should be set up that will trigger the http function (routes) every 5 minutes to prevent cold starts\*|
122
+
| runtimeOptions | false | object | An object containing 3 optional properties. `memory`: amount of memory to allocate to the function, possible values are: '128MB', '256MB', '512MB', '1GB', and '2GB'. `timeoutSeconds`: timeout for the function in seconds, possible values are 0 to 540. `failurePolicy`: When `true`, the function should be retried on failure. default: `false`. |
123
+
| maxAge | undefined | number | The maxAge in ms before the event listener will not attempt to process an event. Can be used to prevent infinite retries of a retry-able event |
123
124
124
125
\* Though billing is required, you can expect the overall cost to be manageable, as each Cloud Scheduler job costs \$0.10 (USD) per month, and there is an allowance of three free jobs per Google account (as of the time of writing). \* The keepAlive feature adds a route to the service at '/heartbeat'. This will not conflict with wildcard routes in the service but would conflict with a route named the same.
0 commit comments