firebase_functions.eventarc_fn module

Cloud functions to handle Eventarc events.

Functions

on_custom_event_published

firebase_functions.eventarc_fn.on_custom_event_published(**kwargs) Callable[[Callable[[CloudEvent], None]], Callable[[CloudEvent], None]]

Creates a handler for events published on the default event eventarc channel.

Example:

from firebase_functions import eventarc_fn

@eventarc_fn.on_custom_event_published(
    event_type="firebase.extensions.storage-resize-images.v1.complete",
)
def onimageresize(event: eventarc_fn.CloudEvent) -> None:
    pass
Parameters:

**kwargs (as firebase_functions.options.EventarcTriggerOptions) -- Options.

Return type:

typing.Callable [ [ firebase_functions.core.CloudEvent ], None ] A function that takes a CloudEvent and returns None.