eventarc namespace
Stay organized with collections
Save and categorize content based on your preferences.
Functions
Interfaces
eventarc.onCustomEventPublished()
Handles an Eventarc event published on the default channel.
Signature:
export declare function onCustomEventPublished<T = any>(eventType: string, handler: (event: CloudEvent<T>) => any | Promise<any>): CloudFunction<CloudEvent<T>>;
Parameters
Parameter |
Type |
Description |
eventType |
string |
Type of the event to trigger on. |
handler |
(event: CloudEvent<T>) => any | Promise<any> |
A function to execute when triggered. |
Returns:
CloudFunction<CloudEvent<T>>
A function that you can export and deploy.
eventarc.onCustomEventPublished()
Handles an Eventarc event.
Signature:
export declare function onCustomEventPublished<T = any>(opts: EventarcTriggerOptions, handler: (event: CloudEvent<T>) => any | Promise<any>): CloudFunction<CloudEvent<T>>;
Parameters
Parameter |
Type |
Description |
opts |
EventarcTriggerOptions |
Options to set on this function |
handler |
(event: CloudEvent<T>) => any | Promise<any> |
A function to execute when triggered. |
Returns:
CloudFunction<CloudEvent<T>>
A function that you can export and deploy.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-18 UTC.
[null,null,["Last updated 2023-04-18 UTC."],[],[],null,["Functions\n\nInterfaces\n\neventarc.onCustomEventPublished()\n\nHandles an Eventarc event published on the default channel.\n\n**Signature:** \n\n export declare function onCustomEventPublished\u003cT = any\u003e(eventType: string, handler: (event: CloudEvent\u003cT\u003e) =\u003e any | Promise\u003cany\u003e): CloudFunction\u003cCloudEvent\u003cT\u003e\u003e;\n\nParameters\n\n**Returns:**\n\n[CloudFunction](./firebase-functions.cloudfunction.md#cloudfunction_interface)\\\u003c[CloudEvent](./firebase-functions.cloudevent.md#cloudevent_interface)\\\u003cT\\\u003e\\\u003e\n\nA function that you can export and deploy.\n\neventarc.onCustomEventPublished()\n\nHandles an Eventarc event.\n\n**Signature:** \n\n export declare function onCustomEventPublished\u003cT = any\u003e(opts: EventarcTriggerOptions, handler: (event: CloudEvent\u003cT\u003e) =\u003e any | Promise\u003cany\u003e): CloudFunction\u003cCloudEvent\u003cT\u003e\u003e;\n\nParameters\n\n**Returns:**\n\n[CloudFunction](./firebase-functions.cloudfunction.md#cloudfunction_interface)\\\u003c[CloudEvent](./firebase-functions.cloudevent.md#cloudevent_interface)\\\u003cT\\\u003e\\\u003e\n\nA function that you can export and deploy."]]