github.com/Jeffail/benthos/v3@v3.65.0/lib/output/writer/azure_table_storage_config.go (about)

     1  package writer
     2  
     3  import (
     4  	"github.com/Jeffail/benthos/v3/lib/message/batch"
     5  )
     6  
     7  //------------------------------------------------------------------------------
     8  
     9  // AzureTableStorageConfig contains configuration fields for the AzureTableStorage output type.
    10  type AzureTableStorageConfig struct {
    11  	StorageAccount          string             `json:"storage_account" yaml:"storage_account"`
    12  	StorageAccessKey        string             `json:"storage_access_key" yaml:"storage_access_key"`
    13  	StorageConnectionString string             `json:"storage_connection_string" yaml:"storage_connection_string"`
    14  	TableName               string             `json:"table_name" yaml:"table_name"`
    15  	PartitionKey            string             `json:"partition_key" yaml:"partition_key"`
    16  	RowKey                  string             `json:"row_key" yaml:"row_key"`
    17  	Properties              map[string]string  `json:"properties" yaml:"properties"`
    18  	InsertType              string             `json:"insert_type" yaml:"insert_type"`
    19  	Timeout                 string             `json:"timeout" yaml:"timeout"`
    20  	MaxInFlight             int                `json:"max_in_flight" yaml:"max_in_flight"`
    21  	Batching                batch.PolicyConfig `json:"batching" yaml:"batching"`
    22  }
    23  
    24  // NewAzureTableStorageConfig creates a new Config with default values.
    25  func NewAzureTableStorageConfig() AzureTableStorageConfig {
    26  	return AzureTableStorageConfig{
    27  		StorageAccount:          "",
    28  		StorageAccessKey:        "",
    29  		StorageConnectionString: "",
    30  		TableName:               "",
    31  		PartitionKey:            "",
    32  		RowKey:                  "",
    33  		Properties:              map[string]string{},
    34  		InsertType:              "INSERT",
    35  		Timeout:                 "5s",
    36  		MaxInFlight:             1,
    37  		Batching:                batch.NewPolicyConfig(),
    38  	}
    39  }
    40  
    41  //------------------------------------------------------------------------------