Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMQP ¶
type AMQP struct {
// contains filtered or unexported fields
}
func (*AMQP) StartConsumer ¶
func (a *AMQP) StartConsumer()
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
func NewConsumer(ap *AMQP, cfg ConsumerConfig) *Consumer
type ConsumerConfig ¶
type ConsumerConfig struct { Exchange Exchange RoutingKey RoutingKey Queue Queue ResStruct any AutoAck bool Handel ConsumerHandel }
type ConsumerHandel ¶
type ConsumerHandel func(ctx context.Context, message *ReceiveMsgPackage)
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(ap *AMQP, c ProducerConfig) *Producer
type ProducerConfig ¶
type ProducerConfig struct { Exchange Exchange RoutingKey RoutingKey Type ConnType }
type ReceiveMsgPackage ¶
type ReceiveMsgPackage struct { RequestId string MsgId string SendTime time.Time // contains filtered or unexported fields }
func (*ReceiveMsgPackage) Content ¶
func (res *ReceiveMsgPackage) Content(ptr interface{}) error
type RoutingKey ¶
type RoutingKey string
Click to show internal directories.
Click to hide internal directories.