Update kafka.go

Co-authored-by: Urban Ishimwe <urbainishimwe@gmail.com>
This commit is contained in:
David Fradin
2020-10-20 16:11:26 +02:00
committed by GitHub
co-authored by Urban Ishimwe
parent 3fcdb6f1bc
commit 716fb72e27
-4
View File
@@ -51,10 +51,6 @@ type KafkaMessage struct {
ReqHeaders map[string]string `json:"Req_Headers,omitempty"`
}
// ErrorTLSMissingKey is the error when client cert is present but key is missing
var ErrorTLSMissingKey = errors.New("Missing key of client certificate")
// ErrorTLSMissingCert is the error when key is present but client cert is missing
var ErrorTLSMissingCert = errors.New("Missing client certificate")
// NewTLSConfig loads TLS certificates
func NewTLSConfig(clientCertFile, clientKeyFile, caCertFile string) (*tls.Config, error) {