tlog.app/go/tlog@v0.23.1/ext/tlclick/pool.go (about) 1 package tlclick 2 3 import ( 4 "context" 5 "crypto/tls" 6 7 click "github.com/ClickHouse/ch-go" 8 "github.com/ClickHouse/ch-go/chpool" 9 ) 10 11 func NewPool(ctx context.Context, opts chpool.Options) (*chpool.Pool, error) { 12 return chpool.New(ctx, opts) 13 } 14 15 func DefaultPoolOptions(addr string) chpool.Options { 16 return chpool.Options{ 17 ClientOptions: click.Options{ 18 Address: addr, 19 Compression: click.CompressionZSTD, 20 ClientName: "tlog agent", 21 22 TLS: &tls.Config{}, 23 }, 24 } 25 }