@nats-io/services
    Preparing search index...

    Type Alias Endpoint

    A service Endpoint

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

    Properties

    handler?: ServiceHandler

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

    metadata?: Record<string, string>

    Optional metadata about the endpoint

    queue?: string

    Optional queue group to run this particular endpoint in. The service's configuration queue configuration will be used. See ServiceConfig. Note that if the queue is set to an empty string, it will not be run in a queue.

    subject: string

    Subject where the endpoint listens