github.com/Jeffail/benthos/v3@v3.65.0/lib/input/pulsar.go (about)

     1  package input
     2  
     3  import (
     4  	"github.com/Jeffail/benthos/v3/internal/impl/pulsar/auth"
     5  )
     6  
     7  // PulsarConfig contains configuration for the Pulsar input type.
     8  type PulsarConfig struct {
     9  	URL              string      `json:"url" yaml:"url"`
    10  	Topics           []string    `json:"topics" yaml:"topics"`
    11  	SubscriptionName string      `json:"subscription_name" yaml:"subscription_name"`
    12  	SubscriptionType string      `json:"subscription_type" yaml:"subscription_type"`
    13  	Auth             auth.Config `json:"auth" yaml:"auth"`
    14  }
    15  
    16  // NewPulsarConfig creates a new PulsarConfig with default values.
    17  func NewPulsarConfig() PulsarConfig {
    18  	return PulsarConfig{
    19  		URL:              "",
    20  		Topics:           []string{},
    21  		SubscriptionName: "",
    22  		SubscriptionType: "",
    23  		Auth:             auth.New(),
    24  	}
    25  }