Documentation ¶
Index ¶
- type Exchange
- type ExchangeType
- type Option
- func WithDurableFanoutExchange(name string) Option
- func WithDurablePriorityQueue(name string, maxPriority uint8) Option
- func WithDurableQueue(name string) Option
- func WithDurableTopicExchange(name, routingKey string) Option
- func WithName(name string) Option
- func WithPrefetchQos(count, size int, isGlobal bool) Option
- type PrefetchQos
- type Queue
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeType ¶
type ExchangeType uint8
const ( ExchangeTypeDirect ExchangeType = iota ExchangeTypeFanout ExchangeTypeTopic ExchangeTypeHeaders )
func (ExchangeType) String ¶
func (t ExchangeType) String() string
func (ExchangeType) Value ¶
func (t ExchangeType) Value() ExchangeType
type Option ¶
type Option func(s Subscriber)
func WithDurableQueue ¶
func WithPrefetchQos ¶
type PrefetchQos ¶
type Queue ¶
type Subscriber ¶
type Subscriber interface { pubsub.Subscriber AddExchange(exchange *Exchange) SetQueue(queue *Queue) SetName(name string) SetPrefetchQos(qos *PrefetchQos) }
func New ¶
func New(uri string, options ...Option) Subscriber
Click to show internal directories.
Click to hide internal directories.