rabbitmq

package
v0.0.0-...-977fba5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rabbitmq Message queue adapter on RabbitMQ.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

Consumer 消息消费者.

func NewConsumer

func NewConsumer(id, parallel int) *Consumer

func (*Consumer) Dispatcher

func (o *Consumer) Dispatcher(dispatcher func(*base.Task, *base.Message) bool)

func (*Consumer) Processor

func (o *Consumer) Processor() process.Processor

type Producer

type Producer struct {
	// contains filtered or unexported fields
}

Producer 消息生产者.

func NewProducer

func NewProducer() *Producer

func (*Producer) Processor

func (o *Producer) Processor() process.Processor

func (*Producer) Publish

func (o *Producer) Publish(payload *base.Payload) (string, error)

type Remoter

type Remoter struct {
	// contains filtered or unexported fields
}

Remoter struct for aliyun mns remoter.

func NewRemoter

func NewRemoter() *Remoter

func (*Remoter) Build

func (o *Remoter) Build(_ context.Context, _ *base.Task) (err error)

func (*Remoter) BuildById

func (o *Remoter) BuildById(_ context.Context, _ int) (err error)

func (*Remoter) Destroy

func (o *Remoter) Destroy(_ context.Context, _ *base.Task) (err error)

func (*Remoter) DestroyById

func (o *Remoter) DestroyById(_ context.Context, _ int) (err error)

func (*Remoter) Processor

func (o *Remoter) Processor() process.Processor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL