azure_servicebus

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "azure-servicebus"

Variables

View Source
var (
	ErrQueueOrTopic  = errors.New("either a queue or topic name must be specified")
	ErrQueueAndTopic = errors.New("only one topic or queue can be specified")
)

Functions

This section is empty.

Types

type AzureServiceBus

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

func New

func New(connOpts *opts.ConnectionOptions) (*AzureServiceBus, error)

func (*AzureServiceBus) Close

func (a *AzureServiceBus) Close(_ context.Context) error

func (*AzureServiceBus) DisplayError

func (a *AzureServiceBus) DisplayError(msg *records.ErrorRecord) error

DisplayError will parse an Error record and print (pretty) output to STDOUT

func (*AzureServiceBus) DisplayMessage

func (a *AzureServiceBus) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error

DisplayMessage will parse a Read record and print (pretty) output to STDOUT

func (*AzureServiceBus) Name

func (a *AzureServiceBus) Name() string

func (*AzureServiceBus) Read

func (a *AzureServiceBus) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error

func (*AzureServiceBus) Relay

func (a *AzureServiceBus) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error

func (*AzureServiceBus) Test

func (a *AzureServiceBus) Test(_ context.Context) error

func (*AzureServiceBus) Tunnel added in v1.4.0

func (a *AzureServiceBus) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error

func (*AzureServiceBus) Write

func (a *AzureServiceBus) Write(ctx context.Context, writeOpts *opts.WriteOptions, errorCh chan<- *records.ErrorRecord, messages ...*records.WriteRecord) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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