Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultNumPartitions = 10 DefaultReplicationFactor = 3 DefaultSegmentBytes = 50 * 1024 * 1024 // 50MB (min allowed by Confluent Cloud) DefaultMaxCompactionLagMs = 7 * 24 * time.Hour / time.Millisecond DefaultDeleteRetentionMs = 24 * time.Hour / time.Millisecond DefaultTopicPrefix = "tables." DefaultSchemasTopic = DefaultTopicPrefix + "schemas" )
View Source
const ( KeyFileEnvName = "KAFKA_SASL_CREDENTIALS" KeyFileName = "kafka_sasl_credentials.json" SecretsDir = ".secrets" ConfigDir = ".config" ConfigSubDir = "kafka" ExampleConfig = `{ "key": "my-api-user", "secret": "my-api-secret", "server": "my-cluster.europe-west3.gcp.confluent.cloud:9092" }` )
Variables ¶
View Source
var ( ErrorParseKeyFile = errors.New("Failed to load or parse keyfile") ErrorFindKeyFile = errors.New("Failed to find keyfile") )
Functions ¶
func DefaultProperties ¶
func FindKeyFile ¶
Types ¶
type KafkaProperties ¶
Click to show internal directories.
Click to hide internal directories.