rabbitmq

package
v0.0.0-...-ec26dd8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfVarExchangeName   = "exchange-name"
	ConfVarURL            = "rabbitmq-url"
	ConfVarWriteBatchSize = "rabbitmq-batch-size"
)

Variables

View Source
var Flags = []cli.Flag{
	cli.StringFlag{
		Name:  "config",
		Value: "config.yaml",
		Usage: "bifrost YAML config file",
	},
	altsrc.NewStringFlag(cli.StringFlag{
		Name:   ConfVarExchangeName,
		Usage:  "RabbitMQ Exchange Name",
		EnvVar: "BIFROST_RABBITMQ_EXCHANGE_NAME",
	}),
	altsrc.NewStringFlag(cli.StringFlag{
		Name:   ConfVarURL,
		Usage:  "RabbitMQ URL",
		EnvVar: "BIFROST_RABBITMQ_URL",
	}),
	altsrc.NewIntFlag(cli.IntFlag{
		Name:   ConfVarWriteBatchSize,
		Usage:  "RabbitMQ Number of messages to write before waiting for confirmations",
		EnvVar: "BIFROST_RABBITMQ_BATCH_SIZE",
		Value:  5000,
	}),
}

Functions

func New

func New(shutdownHandler shutdown.ShutdownHandler,
	txnsWritten chan<- *ordered_map.OrderedMap,
	statsChan chan stats.Stat,
	workers int,
	inputChans []<-chan transport.Batch,
	transportConfig map[string]interface{}) []*transport.Transporter

New creates a rabbitmq transport which has rabbitmq batching and rabbitmq transporting, connected by channels

func NewBatchFactory

func NewBatchFactory(transportConfig map[string]interface{}) transport.BatchFactory

NewBatchFactory returns a GenericBatchFactory configured for RabbitMQ

Types

This section is empty.

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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