update go mod

This commit is contained in:
2023-08-14 11:37:59 +08:00
parent 8ab008b8e3
commit d5e63c46c2
6 changed files with 78 additions and 496 deletions

View File

@@ -9,7 +9,7 @@ package kafka
import (
"crypto/tls"
"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/rcrowley/go-metrics"
"golang.org/x/net/proxy"
"net"
@@ -49,9 +49,9 @@ type Config struct {
// All three of the below configurations are similar to the
// `socket.timeout.ms` setting in JVM kafka. All of them default
// to 30 seconds.
DialTimeout time.Duration `json:"dial_timeout" yaml:"dial_timeout"` // How long to wait for the initial connection.
ReadTimeout time.Duration `json:"read_timeout" yaml:"read_timeout"`// How long to wait for a response.
WriteTimeout time.Duration `json:"write_timeout" yaml:"write_timeout"`// How long to wait for a transmit.
DialTimeout time.Duration `json:"dial_timeout" yaml:"dial_timeout"` // How long to wait for the initial connection.
ReadTimeout time.Duration `json:"read_timeout" yaml:"read_timeout"` // How long to wait for a response.
WriteTimeout time.Duration `json:"write_timeout" yaml:"write_timeout"` // How long to wait for a transmit.
TLS struct {
// Whether or not to use TLS when connecting to the broker