Interface for Consumer Manager

interface NatsConsumerManager {
    add(stream: string, config: NatsConsumerConfig): Promise<void>;
    delete(stream: string, consumer: string): Promise<boolean>;
    info(stream: string, consumer: string): Promise<NatsConsumerInfo>;
    list(stream: string): AsyncIterable<NatsConsumerInfo>;
}

Methods

  • Parameters

    • stream: string
    • consumer: string

    Returns Promise<boolean>