Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisConsumeHandler ¶
type RedisConsumeHandler func(data string)
type RedisConsumer ¶
type RedisConsumer struct {
// contains filtered or unexported fields
}
func NewRedisConsumer ¶
func NewRedisConsumer(ctx context.Context, options *RedisConsumerOptions) (*RedisConsumer, error)
func (*RedisConsumer) Start ¶
func (rc *RedisConsumer) Start() error
func (*RedisConsumer) Subscribe ¶
func (rc *RedisConsumer) Subscribe(topic string, handler RedisConsumeHandler) error
Click to show internal directories.
Click to hide internal directories.