servicebus

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpConnection

type AmqpConnection struct {
	Endpoint             string
	SubscriptionName     string
	SubscriptionAmqpPath string
	TopicName            string
	AccessKeys           servicebus.AccessKeys
	AMQPConnectionString string
	Session              *amqp.Session
	Receiver             *amqp.Receiver
	// contains filtered or unexported fields
}

AmqpConnection provides a connection to service bus and methods for creating required subscriptions and topics

func NewAmqpConnection

func NewAmqpConnection(ctx context.Context, config *types.Configuration) *AmqpConnection

NewAmqpConnection initilises a servicebus lister from configuration

func (*AmqpConnection) CreateAmqpSender

func (l *AmqpConnection) CreateAmqpSender(topic string) (*amqp.Sender, error)

CreateAmqpSender exists for e2e testing.

func (*AmqpConnection) GetQueueDepth

func (l *AmqpConnection) GetQueueDepth() (int64, error)

GetQueueDepth returns the current length of the sb queue

Jump to

Keyboard shortcuts

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