Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// WithSasl enables everything deemed necessary to work with SASL
WithSasl = &withSaslOption{}
)
Functions ¶
This section is empty.
Types ¶
type KafkaFlags ¶
KafkaFlags contains a set of flags for configuring Kafka.
func ForKafka ¶
func ForKafka(configMap kafka.ConfigMap, opts ...KafkaOption) *KafkaFlags
ForKafka creates a helper object, which allows to create flags connected to Kafka configuration. Uses passed in Kafka configuration as a baseline.
func (*KafkaFlags) String ¶
func (kf *KafkaFlags) String(key, usage string)
String creates String flag
func (*KafkaFlags) StringWithDefault ¶
func (kf *KafkaFlags) StringWithDefault(key, def, usage string)
StringWithDefault create String flag with default value
func (*KafkaFlags) ToConfigMap ¶
func (kf *KafkaFlags) ToConfigMap() *kafka.ConfigMap
ToConfigMap uses values from created flags and builds a Kafka configuration.
type KafkaOption ¶
type KafkaOption interface {
Apply(*KafkaFlags)
}
KafkaOption represents applying a set of options to flags
Click to show internal directories.
Click to hide internal directories.