redis

package
v0.0.0-...-ba379e9 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSubDriver

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

PubSubDriver implements the brokerutil concurrent driver interface to allow pub sub functionality over redis

func NewRedisPubSubDriver

func NewRedisPubSubDriver(channels []string, opts *redis.Options) (*PubSubDriver, error)

NewRedisPubSubDriver creates a new redis pub sub driver

func (*PubSubDriver) CloseStream

func (p *PubSubDriver) CloseStream() error

CloseStream cleans the communication routines up

func (*PubSubDriver) GetDriverFlags

func (p *PubSubDriver) GetDriverFlags() []brokerutil.Flag

GetDriverFlags returns flags which indicate the capabilities

func (*PubSubDriver) GetMessageReaderChannel

func (p *PubSubDriver) GetMessageReaderChannel() (<-chan interface{}, error)

GetMessageReaderChannel returns the channel to read from if a message was received

func (*PubSubDriver) GetMessageWriterChannel

func (p *PubSubDriver) GetMessageWriterChannel() (chan<- interface{}, error)

GetMessageWriterChannel returns the channel to write to if a message needs to be sent / published

func (*PubSubDriver) OpenStream

func (p *PubSubDriver) OpenStream() error

OpenStream initializes the communication channels protocol + network

Jump to

Keyboard shortcuts

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