Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Timeout is the time that we should wait for an Ack or a Nack.
Timeout time.Duration
// Concurrency specifies the maximum number of concurrent requests.
Concurrency int
// BufferSize is the size of the Go channel buffer for a subscription.
BufferSize int
}
Config holds the configuration for the publisher/subscriber.
type PubSub ¶
PubSub implements a publisher/subscriber using Go channels. This implementation works only on a single node, i.e. handlers are not distributed. In order to distribute the load across a cluster, a persistent message queue (such as RabbitMQ or Kafka) should instead be used.
Click to show internal directories.
Click to hide internal directories.