azure_servicebus

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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) Dynamic

func (a *AzureServiceBus) Dynamic(ctx context.Context, dynamicOpts *opts.DynamicOptions, dynamicSvc dynamic.IDynamic) error

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) 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