rds

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ins

func Ins(id ...string) redis.Conn

返回 redis 的一个连接

Types

type Subscriber

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

func NewSubscriber

func NewSubscriber(conn redis.Conn, topic string) (*Subscriber, error)

func (*Subscriber) Close

func (s *Subscriber) Close()

func (*Subscriber) Subscribe

func (s *Subscriber) Subscribe(cb func([]byte)) error

Jump to

Keyboard shortcuts

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