Documentation
¶
Overview ¶
Package upstash holds the reference Kv and EventBus adapters over the Upstash Redis REST API.
Upstash Pub/Sub over REST has no subscribe: live tailing needs a WebSocket-based subscriber, which differs per SDK. Wire one in through the Subscriber interface; replay-only usage works without it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ThreadChannel ¶
ThreadChannel is the pub/sub channel for a thread's events.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
Bus is an EventBus over Upstash Redis REST publish plus an optional subscriber.
func NewBus ¶
func NewBus(redis *Redis, subscriber Subscriber) *Bus
NewBus wraps a client. subscriber may be nil for replay-only usage.
type Kv ¶
type Kv struct {
// contains filtered or unexported fields
}
Kv is a Kv over Upstash Redis REST.