import { type ObjectStore } from "https://deno.land/x/natsws@v1.29.0/src/mod.ts";
Methods
info(name: string): Promise<ObjectInfo | null>
Returns the ObjectInfo of the named entry. Or null if the entry doesn't exist.
get(name: string): Promise<ObjectResult | null>
Returns an object you can use for reading the data from the named stored object or null if the entry doesn't exist.
put(): Promise<ObjectInfo>
Adds an object to the store with the specified meta and using the specified ReadableStream to stream the data.
link(name: string, meta: ObjectInfo): Promise<ObjectInfo>
Adds a link to another object in the same store or a different one. Note that links of links are rejected. object.
watch(opts?: Partial<{ ignoreDeletes?: boolean; includeHistory?: boolean; }>): Promise<QueuedIterator<ObjectInfo | null>>
Watch an object store and receive updates of modifications via an iterator.
status(opts?: Partial<StreamInfoRequestOptions>): Promise<ObjectStoreStatus>
Returns the runtime status of the object store.
update(name: string, meta: Partial<ObjectStoreMeta>): Promise<PubAck>
Update the metadata for an object. If the name is modified, the object is effectively renamed and will only be accessible by its new name.