Documentation ¶
Index ¶
- func Publish(amqpURI, exchange, exchangeType, routingKey, body string, reliable bool) error
- type Consumer
- type Registry
- func (r *Registry) DoConsumer(amqpURI, exchange, exchangeType, routingKey, queueName string) (*Consumer, error)
- func (r *Registry) DoPublish(amqpURI, exchange, exchangeType, routingKey, body string, reliable bool) error
- func (r *Registry) Register(host string, port int, user string, password string) string
- type RegistryClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
type Registry ¶
type Registry struct { }
func (*Registry) DoConsumer ¶
func (r *Registry) DoConsumer(amqpURI, exchange, exchangeType, routingKey, queueName string) (*Consumer, error)
消费消息
type RegistryClient ¶
type RegistryClient interface { Register(host string, port int, user string, password string) string DoPublish(amqpURI, exchange, exchangeType, routingKey, body string, reliable bool) error DoConsumer(amqpURI, exchange, exchangeType, routingKey, queue string) (*Consumer, error) }
func NewRegistryClient ¶
func NewRegistryClient() RegistryClient
Click to show internal directories.
Click to hide internal directories.