go_delay_driver_redis

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

README

go-delay-driver-redis

how to use

https://github.com/wsqun/go-delay-queue

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dredis

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

func NewDredis

func NewDredis(addr, pwd string, opt ...OptFn) (dr *Dredis, err error)

func (*Dredis) PublishMsg

func (dr *Dredis) PublishMsg(topic string, msg []byte) (err error)

func (*Dredis) SubscribeMsg

func (dr *Dredis) SubscribeMsg(topic string, dealFn func([]byte) (err error)) (err error)

type OptFn added in v1.0.1

type OptFn func(cfg *redis.Options)

Jump to

Keyboard shortcuts

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