Interface Views

The interface for creating instances of different JetStream materialized views.

interface Views {
    kv: ((name, opts?) => Promise<KV>);
    os: ((name, opts?) => Promise<ObjectStore>);
}

Properties

Properties

kv: ((name, opts?) => Promise<KV>)

Gets or creates a JetStream KV store

Type declaration

    • (name, opts?): Promise<KV>
    • Parameters

      • name: string

        name for the KV

      • Optional opts: Partial<KvOptions>

        optional options to configure the KV and stream backing

      Returns Promise<KV>

os: ((name, opts?) => Promise<ObjectStore>)

Type declaration