github.com/Jeffail/benthos/v3@v3.65.0/lib/output/writer/azure_queue_storage_config.go (about) 1 package writer 2 3 import ( 4 "github.com/Jeffail/benthos/v3/lib/message/batch" 5 ) 6 7 // AzureQueueStorageConfig contains configuration fields for the output Azure Queue Storage type. 8 type AzureQueueStorageConfig struct { 9 StorageAccount string `json:"storage_account" yaml:"storage_account"` 10 StorageAccessKey string `json:"storage_access_key" yaml:"storage_access_key"` 11 StorageConnectionString string `json:"storage_connection_string" yaml:"storage_connection_string"` 12 QueueName string `json:"queue_name" yaml:"queue_name"` 13 TTL string `json:"ttl" yaml:"ttl"` 14 MaxInFlight int `json:"max_in_flight" yaml:"max_in_flight"` 15 Batching batch.PolicyConfig `json:"batching" yaml:"batching"` 16 } 17 18 // NewAzureQueueStorageConfig creates a new Config with default values. 19 func NewAzureQueueStorageConfig() AzureQueueStorageConfig { 20 return AzureQueueStorageConfig{ 21 StorageAccount: "", 22 StorageAccessKey: "", 23 StorageConnectionString: "", 24 QueueName: "", 25 TTL: "", 26 MaxInFlight: 1, 27 Batching: batch.NewPolicyConfig(), 28 } 29 }