azure

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts *cli.Options) (*servicebus.Namespace, error)

NewClient returns a properly configured service bus client

func Read

func Read(opts *cli.Options) error

func Write

func Write(opts *cli.Options) error

Write performs necessary setup and calls AzureServiceBus.Write() to write the actual message

Types

type AzureServiceBus

type AzureServiceBus struct {
	Options *cli.Options
	MsgDesc *desc.MessageDescriptor
	Client  *servicebus.Namespace
	Queue   *servicebus.Queue
	Topic   *servicebus.Topic
	// contains filtered or unexported fields
}

func (*AzureServiceBus) Read

func (a *AzureServiceBus) Read() error

func (*AzureServiceBus) Write

func (a *AzureServiceBus) Write(ctx context.Context, value []byte) error

Write writes a message to an ASB topic or queue, depending on which is specified

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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