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) Dynamic(ctx context.Context, dynamicOpts *opts.DynamicOptions, ...) 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) 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) 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) 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.