32 lines
769 B
Go
32 lines
769 B
Go
package config
|
|
|
|
|
|
type Configurations struct {
|
|
Env string
|
|
Server ServerConfigurations
|
|
Kafka KafkaConfigurations
|
|
SchemaRegistry SchemaRegistryConfigurations
|
|
}
|
|
|
|
|
|
type ServerConfigurations struct {
|
|
Port string
|
|
Goroutines int
|
|
}
|
|
|
|
|
|
type KafkaConfigurations struct {
|
|
Bootstrap_Servers string
|
|
Request_Timeout_Ms int
|
|
Retry_Backoff_MS int
|
|
Sasl_User string
|
|
Sasl_Password string
|
|
Kafka_Topic_Json string
|
|
Kafka_Topic_Protobuf string
|
|
}
|
|
|
|
type SchemaRegistryConfigurations struct {
|
|
Endpoint string
|
|
Topics string
|
|
}
|