redis_pubsub

package
v0.0.0-...-4ea7438 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERR_RedisNotInit = errors.New("redis not init")
)

Functions

This section is empty.

Types

type RdsPubSubMsg

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

func SharedRdsSubscribMsgInstance

func SharedRdsSubscribMsgInstance() *RdsPubSubMsg

func (*RdsPubSubMsg) AddSubscribe

func (r *RdsPubSubMsg) AddSubscribe(channel string, onRevMsg func(msg interface{}))

func (*RdsPubSubMsg) IsRunning

func (r *RdsPubSubMsg) IsRunning() bool

func (*RdsPubSubMsg) Publish

func (r *RdsPubSubMsg) Publish(channel string, msg interface{}) error

func (*RdsPubSubMsg) Quit

func (r *RdsPubSubMsg) Quit()

func (*RdsPubSubMsg) Set

func (r *RdsPubSubMsg) Set(rdsCli redis.Cmdable)

func (*RdsPubSubMsg) StartSubscription

func (r *RdsPubSubMsg) StartSubscription()

Jump to

Keyboard shortcuts

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