Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAvailablePusher = errors.New("no available pusher")
Functions ¶
This section is empty.
Types ¶
type BalancedPusher ¶
type BalancedPusher struct {
// contains filtered or unexported fields
}
func (*BalancedPusher) Name ¶
func (pusher *BalancedPusher) Name() string
func (*BalancedPusher) Push ¶
func (pusher *BalancedPusher) Push(message string) error
type ConsumerFactory ¶
type MessageQueue ¶
type MessageQueue interface { Start() Stop() }
type MultiPusher ¶
type MultiPusher struct {
// contains filtered or unexported fields
}
func (*MultiPusher) Name ¶
func (pusher *MultiPusher) Name() string
func (*MultiPusher) Push ¶
func (pusher *MultiPusher) Push(message string) error
type ProduceListener ¶
type ProduceListener interface { OnProducerPause() OnProducerResume() }
type Producer ¶
type Producer interface { AddListener(listener ProduceListener) Produce() (string, bool) }
type ProducerFactory ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func NewQueue ¶
func NewQueue(producerFactory ProducerFactory, consumerFactory ConsumerFactory) *Queue
func (*Queue) AddListener ¶
func (*Queue) SetNumConsumer ¶
func (*Queue) SetNumProducer ¶
Click to show internal directories.
Click to hide internal directories.