redis

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	redis.Client
}

type RedisPubSub

type RedisPubSub struct {
	RedisClient
	Channel string
}

func (*RedisPubSub) Close

func (rPubSub *RedisPubSub) Close() error

func (*RedisPubSub) Publish

func (rPubSub *RedisPubSub) Publish(msg string) error

func (*RedisPubSub) ReceiveMessage

func (rPubSub *RedisPubSub) ReceiveMessage() chan string

func (*RedisPubSub) SetChannel

func (rPubSub *RedisPubSub) SetChannel(channel string) i.IPubSub

func (*RedisPubSub) SetClient

func (rPubSub *RedisPubSub) SetClient(iClient *i.IClient) i.IPubSub

type RedisQueue

type RedisQueue struct {
	RedisClient
	Topic string
}

func (*RedisQueue) Dequeue

func (rq *RedisQueue) Dequeue() (string, error)

func (*RedisQueue) Enqueue

func (rq *RedisQueue) Enqueue(val string) error

func (*RedisQueue) SetClient

func (rq *RedisQueue) SetClient(iClient *i.IClient) i.IQueue

func (*RedisQueue) SetTopic

func (rq *RedisQueue) SetTopic(topic string) i.IQueue

Jump to

Keyboard shortcuts

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