eventarc namespace Stay organized with collections Save and categorize content based on your preferences.
Functions
| Function | Description |
|---|---|
| onCustomEventPublished(eventType, handler) | Handles an Eventarc event published on the default channel. |
| onCustomEventPublished(opts, handler) | Handles an Eventarc event. |
Interfaces
| Interface | Description |
|---|---|
| EventarcTriggerOptions | Options that can be set on an Eventarc trigger. |
eventarc.onCustomEventPublished()
Handles an Eventarc event published on the default channel.
Signature:
exportdeclarefunctiononCustomEventPublished<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:
A function that you can export and deploy.
eventarc.onCustomEventPublished()
Handles an Eventarc event.
Signature:
exportdeclarefunctiononCustomEventPublished<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:
A function that you can export and deploy.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-18 UTC.