azure

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 15 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 Relay added in v0.13.0

func Relay(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

type Relayer added in v0.13.0

type Relayer struct {
	Options *cli.Options
	MsgDesc *desc.MessageDescriptor
	RelayCh chan interface{}

	Queue          *servicebus.Queue
	Topic          *servicebus.Topic
	DefaultContext context.Context
	// contains filtered or unexported fields
}

func (*Relayer) Relay added in v0.13.0

func (r *Relayer) Relay() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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