Discover Packages
github.com/qp/go
redis
package
Version:
v0.0.0-...-226497a
Opens a new window with list of versions in this module.
Published: Aug 14, 2014
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package redis implements the various qp transports.
Direct represents a qp.DirectTransport.
NewDirect makes a new Direct redis transport.
NewDirectTimeout makes a new Direct redis transport and allows you to specify timeout values.
OnMessage binds the handler to the specified channel.
Send sends data on the channel.
SetLogger sets the Logger to log to.
Start starts the transport.
Stop instructs the transport to gracefully stop and close the
StopChan when stopping has completed.
In-flight requests will have "wait" duration to complete
before being abandoned.
StopChan gets the stop channel which will block until
stopping has completed, at which point it is closed.
Callers should never close the stop channel.
PubSub represents a qp.PubSubTransport.
NewPubSub makes a new PubSub redis transport.
NewPubSubTimeout makes a new PubSub redis transport and allows you to specify timeout values.
Publish publishes data on the specified channel.
SetLogger sets the Logger to log to.
Start starts the transport.
Stop stops the transport and closes StopChan() when finished.
StopChan gets the stop channel which will be closed when
this transport has successfully stopped.
Subscribe binds the handler to the specified channel.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.