Discover Packages
github.com/qp/go
templates
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: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package templates contains template code for writing QP
components, such as codecs and transports.
Direct represents a qp.DirectTransport.
NewDirect makes a new direct transport.
OnMessage binds the handler to the specified channel.
Send sends data on the channel.
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.
Publish publishes data on the specified channel.
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.