Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
T implements a consumer request dispatch tier responsible for a particular topic. It receives requests on the `Requests()` channel and replies with messages received on `Messages()` channel. If there has been no message received for `Config.Consumer.LongPollingTimeout` then a timeout error is sent to the requests' reply channel.
implements `dispatcher.Tier`. implements `multiplexer.Out`.
func New ¶
Creates a topic consumer instance. It should be explicitly started in accordance with the `dispatcher.Tier` contract.
func (*T) Requests ¶
func (tc *T) Requests() chan<- dispatcher.Request
implements `dispatcher.Tier`.
func (*T) Start ¶
func (tc *T) Start(stoppedCh chan<- dispatcher.Tier)
implements `dispatcher.Tier`.
Click to show internal directories.
Click to hide internal directories.