v2

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v2 provides a client with included tracing capabilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFunc

type OptionFunc func(*Publisher) error

OptionFunc definition for configuring the publisher in a functional way.

func Config

func Config(cfg amqp.Config) OptionFunc

Config option for providing dial configuration.

type Publisher

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

Publisher defines a RabbitMQ publisher with tracing instrumentation.

func New

func New(url string, oo ...OptionFunc) (*Publisher, error)

New constructor.

func (*Publisher) Close

func (tc *Publisher) Close() error

Close the channel and connection.

func (*Publisher) Publish

func (tc *Publisher) Publish(ctx context.Context, exchange, key string, mandatory, immediate bool, msg amqp.Publishing) error

Publish a message to an exchange.

Jump to

Keyboard shortcuts

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