Add tls.Config to ksql.Config

pull/20/head v1.4.4
Vinícius Garcia 2022-04-03 21:28:23 -03:00
parent 660904718b
commit d229767d98
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package ksql
import (
"context"
"crypto/tls"
"fmt"
"reflect"
"strings"
@ -73,6 +74,9 @@ type Tx interface {
type Config struct {
// MaxOpenCons defaults to 1 if not set
MaxOpenConns int
// Used by some adapters (such as kpgx) where nil disables TLS
TLSConfig *tls.Config
}
// SetDefaultValues should be called by all adapters