Documentation
¶
Index ¶
- func AppendToTopic(key, str string) string
- type Consumer
- type ConsumerOptions
- type NotificationOptions
- type Notifier
- type Publisher
- type PublisherOptions
- type Queue
- type RabbitConnector
- func (rc RabbitConnector) Channel() (*amqp.Channel, error)
- func (rc *RabbitConnector) Connect(url string) error
- func (r *RabbitConnector) CreatePublisher(options PublisherOptions) (*Publisher, error)
- func (rc RabbitConnector) Disconnect() error
- func (r *RabbitConnector) StartConsumer(consumer Consumer) error
- func (r *RabbitConnector) StartNotifier(notifier Notifier) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToTopic ¶
Types ¶
type Consumer ¶
type Consumer interface {
Options() ConsumerOptions
HandleMessage([]byte) error
}
type ConsumerOptions ¶
type NotificationOptions ¶
type Notifier ¶
type Notifier interface {
Options() NotificationOptions
Stop() bool
Notify() (string, error)
}
type PublisherOptions ¶
type RabbitConnector ¶
type RabbitConnector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func NewConnector(url string) (*RabbitConnector, error)
func (*RabbitConnector) Connect ¶
func (rc *RabbitConnector) Connect(url string) error
func (*RabbitConnector) CreatePublisher ¶
func (r *RabbitConnector) CreatePublisher(options PublisherOptions) (*Publisher, error)
func (RabbitConnector) Disconnect ¶
func (rc RabbitConnector) Disconnect() error
func (*RabbitConnector) StartConsumer ¶
func (r *RabbitConnector) StartConsumer(consumer Consumer) error
func (*RabbitConnector) StartNotifier ¶
func (r *RabbitConnector) StartNotifier(notifier Notifier) error
Click to show internal directories.
Click to hide internal directories.