redishub

package
v0.0.0-...-5d08768 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Hub ...
	Hub *RedisHub
	//RedisHost 服务器ip
	RedisHost = os.Getenv("REDIS_HOST")
	//RedisPort 服务器端口
	RedisPort, _ = strconv.Atoi(os.Getenv("REDIS_PORT"))
)

Functions

This section is empty.

Types

type RedisHub

type RedisHub struct {
	*wspush.Hub
	PubSub *redis.PubSub
}

RedisHub ..

func NewHub

func NewHub(redis *redis.Client) *RedisHub

NewHub Hub初始化

func (*RedisHub) SendData

func (h *RedisHub) SendData()

SendData ..

Jump to

Keyboard shortcuts

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