publishamqp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultContentType = "application/json"
	DefaultAppID       = "ytfeed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AMQPPublisher

type AMQPPublisher interface {
	Publish(exchange, key string, mandatory, immediate bool, msg amqp.Publishing) error
	NotifyReturn(c chan amqp.Return) chan amqp.Return
}

type PublishAMQP

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

func New

func New(logger ytfeed.Logger, channel AMQPPublisher, exchange, key string, mandatory, immediate bool) (pr *PublishAMQP)

func (*PublishAMQP) DataHandler

func (p *PublishAMQP) DataHandler(ctx context.Context, d *ytfeed.Data)

Jump to

Keyboard shortcuts

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