Type Alias Endpoint

Endpoint: {
    handler?: ServiceHandler;
    metadata?: Record<string, string>;
    queue?: string;
    subject: string;
}

A service Endpoint

Type declaration

  • Optionalhandler?: ServiceHandler

    An optional handler - if not set the service is an iterator

  • Optionalmetadata?: Record<string, string>

    Optional metadata about the endpoint

  • Optionalqueue?: string

    Optional queue group to run this particular endpoint in. The service's configuration queue configuration will be used. See ServiceConfig.

  • subject: string

    Subject where the endpoint listens