pubsub

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisPubSub

type RedisPubSub struct {
	// contains filtered or unexported fields
}

func NewRedisPubSub

func NewRedisPubSub(client *redis.Client) *RedisPubSub

func (RedisPubSub) Close

func (rps RedisPubSub) Close() error

func (RedisPubSub) Listen

func (rps RedisPubSub) Listen(listener internal.SubscribeListener)

func (RedisPubSub) Publish

func (rps RedisPubSub) Publish(channel string, message interface{}) error

func (RedisPubSub) Subscribe

func (rps RedisPubSub) Subscribe(channels ...string) error

func (RedisPubSub) Unsubscribe

func (rps RedisPubSub) Unsubscribe(channels ...string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL