Documentation
¶
Index ¶
- type Context
- func (ctx *Context) Ack(multiple bool) error
- func (ctx *Context) AppId() string
- func (ctx *Context) Bind(data interface{}) error
- func (ctx *Context) Body() []byte
- func (ctx *Context) ConsumerTag() string
- func (ctx *Context) ContentType() string
- func (ctx *Context) CorrelationId() string
- func (ctx *Context) DeliveryTag() uint64
- func (ctx *Context) MessageCount() uint32
- func (ctx *Context) MessageId() string
- func (ctx *Context) Nack(multiple, requeue bool) error
- func (ctx *Context) Next() error
- func (ctx *Context) Redelivered() bool
- func (ctx *Context) Reject(requeue bool) error
- func (ctx *Context) Reply(data []byte) error
- func (ctx *Context) ReplyJSON(data interface{}) error
- func (ctx *Context) ReplyTo() string
- func (ctx *Context) Timestamp() time.Time
- func (ctx *Context) Type() string
- func (ctx *Context) UserId() string
- func (ctx *Context) WorkerId() int
- type Handler
- type JSON
- type MMQ
- func (m *MMQ) BindQueue(name, routingKey, exchange string, noWait bool, args amqp091.Table) error
- func (m *MMQ) Close() error
- func (m *MMQ) Connect() error
- func (m *MMQ) Consume(name string, handler ...Handler)
- func (m *MMQ) ConsumeMultiply(name string, workers int, handler ...Handler)
- func (m *MMQ) DeclareExchange(name string, kind string, durable, autoDelete, internal, noWait bool) error
- func (m *MMQ) DeclareQueue(name string, durable, autoDelete, noWait, exclusive bool) error
- func (m *MMQ) Listen()
- func (m *MMQ) Publish(name, exchange string, body []byte) error
- func (m *MMQ) PurgeExchange(name string, ifUnused, noWait bool) error
- func (m *MMQ) PurgeQueue(name string, noWait bool) error
- func (m *MMQ) Queue(name, routingKey, exchange string)
- func (m *MMQ) Reconnect()
- func (m *MMQ) Request(name string, body []byte) (data []byte, err error)
- func (m *MMQ) RequestJSON(name string, body interface{}, response interface{}) error
- func (m *MMQ) Use(handler Handler)
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
App *MMQ
Delivery amqp091.Delivery
Channel *amqp091.Channel
// contains filtered or unexported fields
}
func (*Context) ConsumerTag ¶ added in v1.0.8
func (*Context) ContentType ¶ added in v1.0.8
func (*Context) CorrelationId ¶ added in v1.0.8
func (*Context) DeliveryTag ¶ added in v1.0.8
func (*Context) MessageCount ¶ added in v1.0.8
func (*Context) Redelivered ¶ added in v1.0.8
type MMQ ¶
type MMQ struct {
JsonMarshal func(v interface{}) ([]byte, error)
JsonUnmarshal func(data []byte, v interface{}) error
// contains filtered or unexported fields
}
func (*MMQ) ConsumeMultiply ¶ added in v1.0.14
func (*MMQ) DeclareExchange ¶
func (*MMQ) DeclareQueue ¶
func (*MMQ) PurgeExchange ¶ added in v1.0.8
func (*MMQ) RequestJSON ¶ added in v1.0.10
Source Files
¶
Click to show internal directories.
Click to hide internal directories.