기능
기능 | 설명 |
---|---|
onCustomEventPublished(이벤트 유형, 핸들러) | 기본 채널에 게시된 Eventarc 이벤트를 처리합니다. |
onCustomEventPublished(옵션, 핸들러) | Eventarc 이벤트를 처리합니다. |
인터페이스
상호 작용 | 설명 |
---|---|
EventarcTrigger옵션 | Eventarc 트리거에 설정할 수 있는 옵션입니다. |
eventarc.onCustomEventPublished()
기본 채널에 게시된 Eventarc 이벤트를 처리합니다.
서명:
export declare function onCustomEventPublished<T = any>(eventType: string, handler: (event: CloudEvent<T>) => any | Promise<any>): CloudFunction<CloudEvent<T>>;
매개변수
매개변수 | 유형 | 설명 |
---|---|---|
이벤트 유형 | 끈 | 트리거할 이벤트의 유형입니다. |
매니저 | (이벤트: CloudEvent <T>) => 모두 | 약속<아무거나> | 트리거될 때 실행할 함수입니다. |
보고:
CloudFunction < 클라우드이벤트 <티>>
내보내고 배포할 수 있는 기능입니다.
eventarc.onCustomEventPublished()
Eventarc 이벤트를 처리합니다.
서명:
export declare function onCustomEventPublished<T = any>(opts: EventarcTriggerOptions, handler: (event: CloudEvent<T>) => any | Promise<any>): CloudFunction<CloudEvent<T>>;
매개변수
매개변수 | 유형 | 설명 |
---|---|---|
선택하다 | EventarcTrigger옵션 | 이 기능에 설정하는 옵션 |
매니저 | (이벤트: CloudEvent <T>) => 모두 | 약속<아무거나> | 트리거될 때 실행할 함수입니다. |
보고:
CloudFunction < 클라우드이벤트 <티>>
내보내고 배포할 수 있는 기능입니다.