Interface for Stream Manager

interface NatsStreamManager {
    add(config: Partial<NatsStreamConfig>): Promise<void>;
    delete(stream: string): Promise<boolean>;
    deleteMessage(stream: string, seq: number): Promise<boolean>;
    info(stream: string): Promise<NatsStreamInfo>;
    list(): AsyncIterable<NatsStreamInfo>;
    update(stream: string, config: NatsStreamConfig): Promise<void>;
}

Methods

  • Parameters

    • stream: string

    Returns Promise<boolean>

  • Parameters

    • stream: string
    • seq: number

    Returns Promise<boolean>