Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Publish(ctx context.Context, topic string, value []byte) error Subscribe(ctx context.Context, topic string, f func([]byte)) error Close() }
Client specifies the interface for pubsub actions
type NATS ¶
type NATS struct {
// contains filtered or unexported fields
}
NATS implements the pubsub Client interface
type RedisPubSub ¶
type RedisPubSub struct {
// contains filtered or unexported fields
}
RedisPubSub is a redis implementation of the PubSub interface
Click to show internal directories.
Click to hide internal directories.