Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMaxMessages = 10
View Source
const MessageHandlerMethodName = "Handle"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteInvokedOperation ¶ added in v0.2.1
this represents the message (command) that is sent to the operator to be executed
type MessageHandlerContext ¶
type MessageHandlerContext struct { ReceivedMessage *azservicebus.ReceivedMessage // contains filtered or unexported fields }
func (*MessageHandlerContext) Context ¶
func (c *MessageHandlerContext) Context() context.Context
type MessageReceiver ¶
type MessageReceiver interface { Start() Stop() GetName() string }
func NewServiceBusReceiver ¶
func NewServiceBusReceiver(handler any, credential azcore.TokenCredential, options ServiceBusMessageReceiverOptions) (MessageReceiver, error)
type MessageReceiverOptions ¶
type MessageReceiverOptions struct {
QueueName string
}
type MessageSender ¶
type MessageSender interface { Send(ctx context.Context, queueName string, messages ...any) ([]SendMessageResult, error) EnsureTopology(ctx context.Context, queueName string) error }
func NewServiceBusMessageSender ¶
func NewServiceBusMessageSender(credential azcore.TokenCredential, options MessageSenderOptions) (MessageSender, error)
type MessageSenderOptions ¶
type SendMessageResult ¶
type ServiceBusMessageHandler ¶
type ServiceBusMessageHandler interface {
Handle(ctx context.Context, message *azservicebus.ReceivedMessage) error
}
func NewServiceMessageHandler ¶
func NewServiceMessageHandler(handler any) (ServiceBusMessageHandler, error)
Creates a new service bus message handler from any handler struct by wrapping it required implementation of the handler: { Handle(message *T, context MessageHandlerContext) error }
type ServiceBusMessageReceiverOptions ¶
type ServiceBusMessageReceiverOptions struct { MessageReceiverOptions FullyQualifiedNamespace string MaxMessages int }
Click to show internal directories.
Click to hide internal directories.