MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / SetDefaults

Method SetDefaults

plugins/destination/kafka/client/spec/spec.go:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (s *Spec) SetDefaults() {
58 s.FileSpec.SetDefaults()
59
60 if s.BatchSize < 1 {
61 s.BatchSize = 1000
62 }
63 if s.TopicDetails.NumPartitions < 1 {
64 s.TopicDetails.NumPartitions = 1
65 }
66 if s.TopicDetails.ReplicationFactor < 1 {
67 s.TopicDetails.ReplicationFactor = 1
68 }
69}
70
71func (tlsDetails *TlsDetails) IsEnabled() bool {
72 if tlsDetails == nil {

Callers 2

NewFunction · 0.45
ValidateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected