Documentation
¶
Overview ¶
Package redis provides a Redis adapter for Kiara.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // This error is reported via types.Pipe.Errors when the adapter can't deliver // succeeding messages arrived from Redis because types.Pipe.Delivered is already full. ErrSlowConsumer = errors.New("slow consumer") )
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter is an adapter that sends message through Redis PubSub
func NewAdapter ¶
func NewAdapter(client RedisClient, options ...Option) *Adapter
NewAdapter returns a new Adapter.
func (*Adapter) Unsubscribe ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures the Adapter.
func PublishTimeout ¶
PublishTimeout sets the timeout for a publish request.
func SubscriptionTimeout ¶
SubscriptionTimeout sets the timeout for a subscription request.
Click to show internal directories.
Click to hide internal directories.