Documentation ¶
Overview ¶
Package azservicebus provides a notifier that subscribes to an Service Bus topic that watches change of configuration on Azure.
It requires following roles:
- Azure Service Bus Data Owner
- Azure Service Bus Data Receiver
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier that watches change events on given Service Bus topic.
To create a new Notifier, call NewNotifier.
func NewNotifier ¶
NewNotifier creates a Notifier with the given Service Bus namespace and topic.
type Option ¶
type Option func(options *options)
Option configures the Notifier with specific options.
func WithCredential ¶
func WithCredential(credential azcore.TokenCredential) Option
WithCredential provides the azcore.TokenCredential for Azure authentication.
By default, it uses azidentity.DefaultAzureCredential.
func WithLogHandler ¶
WithLogHandler provides the slog.Handler for logs from notifier.
By default, it uses handler from slog.Default().