-
Notifications
You must be signed in to change notification settings - Fork 467
/
metadata.go
27 lines (25 loc) · 1.48 KB
/
metadata.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation and Dapr Contributors.
// Licensed under the MIT License.
// ------------------------------------------------------------
package servicebus
// Reference for settings:
// https://github.com/Azure/azure-service-bus-go/blob/54b2faa53e5216616e59725281be692acc120c34/subscription_manager.go#L101
type metadata struct {
ConnectionString string `json:"connectionString"`
ConsumerID string `json:"consumerID"`
TimeoutInSec int `json:"timeoutInSec"`
HandlerTimeoutInSec int `json:"handlerTimeoutInSec"`
LockRenewalInSec int `json:"lockRenewalInSec"`
MaxActiveMessages int `json:"maxActiveMessages"`
MaxActiveMessagesRecoveryInSec int `json:"maxActiveMessagesRecoveryInSec"`
MaxReconnectionAttempts int `json:"maxReconnectionAttempts"`
ConnectionRecoveryInSec int `json:"connectionRecoveryInSec"`
DisableEntityManagement bool `json:"disableEntityManagement"`
MaxDeliveryCount *int `json:"maxDeliveryCount"`
LockDurationInSec *int `json:"lockDurationInSec"`
DefaultMessageTimeToLiveInSec *int `json:"defaultMessageTimeToLiveInSec"`
AutoDeleteOnIdleInSec *int `json:"autoDeleteOnIdleInSec"`
MaxConcurrentHandlers *int `json:"maxConcurrentHandlers"`
PrefetchCount *int `json:"prefetchCount"`
}