firebase-admin.eventarc package

Firebase Eventarc

Functions

함수 설명
getEventarc(앱) 기본 앱 또는 지정된 앱의 Eventarc 서비스를 가져옵니다.getEventarc()를 호출하여 기본 앱의 Eventarc 서비스에 액세스하기 위한 인수 없이 호출하거나 getEventarc(app)로 호출하여 특정 앱과 연결된 Eventarc 서비스에 액세스할 수 있습니다.

클래스

클래스 설명
채널 Eventarc 채널
Eventarc 제공된 앱에 바인딩된 Eventarc 서비스

인터페이스

인터페이스 설명
채널 옵션 채널 옵션 인터페이스
Cloud 이벤트 CloudEvent는 이벤트 데이터를 설명합니다.

유형 별칭

유형 별칭 설명
CloudEventVersion CloudEvent 버전입니다.

getEventarc(앱)

기본 앱 또는 지정된 앱의 Eventarc 서비스를 가져옵니다.

getEventarc()는 기본 앱의 Eventarc 서비스에 액세스하기 위한 인수 없이 호출하거나 getEventarc(app)로 호출하여 특정 앱과 연결된 Eventarc 서비스에 액세스할 수 있습니다.

서명:

export declare function getEventarc(app?: App): Eventarc;

매개변수

매개변수 유형 설명
Eventarc 서비스를 반환할 선택적 앱입니다. 제공하지 않으면 기본 Eventarc 서비스가 반환됩니다.

반환:

Eventarc

제공된 앱이 없는 경우 기본 Eventarc 서비스 또는 제공된 앱과 연결된 Eventarc 서비스입니다.

예 1

// Get the Eventarc service for the default app
const defaultEventarc = getEventarc();

예 2

// Get the Eventarc service for a given app
const otherEventarc = getEventarc(otherApp);

CloudEventVersion

CloudEvent 버전입니다.

서명:

export type CloudEventVersion = '1.0';