Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONSchema string
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct {
filetypes.FileSpec
// List of brokers to connect to.
//
// Example broker address:
//
// - `"localhost:9092"` default url for a local Kafka broker
Brokers []string `json:"brokers,omitempty" jsonschema:"required,minLength=1,minItems=1"`
// If `true`, the plugin will log all underlying Kafka client messages to the log.
Verbose bool `json:"verbose,omitempty"`
// If connecting via SASL/PLAIN, the username to use.
SASLUsername string `json:"sasl_username,omitempty"`
// If connecting via SASL/PLAIN, the password to use.
SASLPassword string `json:"sasl_password,omitempty"`
// Number of records to write before starting a new object.
BatchSize int64 `json:"batch_size" jsonschema:"minimum=1,default=1000"`
// Topic details, such as number of partitions and replication factor.
TopicDetails topicDetails `json:"topic_details"`
}
func (Spec) JSONSchemaExtend ¶
func (s Spec) JSONSchemaExtend(sc *jsonschema.Schema)
func (*Spec) SetDefaults ¶
func (s *Spec) SetDefaults()
Click to show internal directories.
Click to hide internal directories.