publisher

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RabbitMQDelayHeader header key
	RabbitMQDelayHeader = "x-delay"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaPublisher

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

KafkaPublisher kafka

func NewKafkaPublisher

func NewKafkaPublisher(client sarama.Client) *KafkaPublisher

NewKafkaPublisher constructor

func (*KafkaPublisher) PublishMessage

func (p *KafkaPublisher) PublishMessage(ctx context.Context, args *candishared.PublisherArgument) (err error)

PublishMessage method

type RabbitMQPublisher

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

RabbitMQPublisher rabbitmq

func NewRabbitMQPublisher

func NewRabbitMQPublisher(conn *amqp.Connection) *RabbitMQPublisher

NewRabbitMQPublisher constructor

func (*RabbitMQPublisher) PublishMessage

func (r *RabbitMQPublisher) PublishMessage(ctx context.Context, args *candishared.PublisherArgument) (err error)

PublishMessage method

Jump to

Keyboard shortcuts

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