MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/functions-framework-nodejs / cloudEvent

Function cloudEvent

src/function_registry.ts:96–101  ·  view source on GitHub ↗
(
  functionName: string,
  handler: CloudEventFunction<T> | CloudEventFunctionWithCallback<T>,
)

Source from the content-addressed store, hash-verified

94 * @public
95 */
96export const cloudEvent = <T = unknown>(
97 functionName: string,
98 handler: CloudEventFunction<T> | CloudEventFunctionWithCallback<T>,
99): void => {
100 register(functionName, 'cloudevent', handler);
101};

Callers

nothing calls this directly

Calls 1

registerFunction · 0.85

Tested by

no test coverage detected