Documentation ¶
Index ¶
- Constants
- Variables
- type AzureServiceBus
- func (a *AzureServiceBus) Close(_ context.Context) error
- func (a *AzureServiceBus) DisplayError(msg *records.ErrorRecord) error
- func (a *AzureServiceBus) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
- func (a *AzureServiceBus) Name() string
- func (a *AzureServiceBus) Read(ctx context.Context, readOpts *opts.ReadOptions, ...) error
- func (a *AzureServiceBus) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, ...) error
- func (a *AzureServiceBus) Test(_ context.Context) error
- func (a *AzureServiceBus) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, ...) error
- func (a *AzureServiceBus) Write(ctx context.Context, writeOpts *opts.WriteOptions, ...) error
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) 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) 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.