Documentation ¶
Index ¶
- Constants
- func GetMechanism(sasl SASL) sasl.Mechanism
- func NewTLSConfig(caCertFiles, clientCertFile, clientKeyFile string, insecureSkipVerify bool) (*tls.Config, error)
- type Config
- type GSSAPI
- type Logger
- type RenderTopicFail
- type SASL
- type Sink
- func (s *Sink) Category() api.Category
- func (s *Sink) Config() interface{}
- func (s *Sink) Consume(batch api.Batch) api.Result
- func (s *Sink) Init(context api.Context) error
- func (s *Sink) SetCodec(c codec.Codec)
- func (s *Sink) Start() error
- func (s *Sink) Stop()
- func (s *Sink) String() string
- func (s *Sink) Type() api.Type
- type TLS
Constants ¶
View Source
const (
Krb5KeytabAuth = 2
)
View Source
const Type = "franzKafka"
Variables ¶
This section is empty.
Functions ¶
func GetMechanism ¶ added in v1.5.0
func NewTLSConfig ¶
func NewTLSConfig(caCertFiles, clientCertFile, clientKeyFile string, insecureSkipVerify bool) (*tls.Config, error)
NewTLSConfig Refers to: https://medium.com/processone/using-tls-authentication-for-your-go-kafka-client-3c5841f2a625 https://github.com/denji/golang-tls https://www.baeldung.com/java-keystore-truststore-difference
Types ¶
type Config ¶
type Config struct { Brokers []string `yaml:"brokers,omitempty" validate:"required"` Topic string `yaml:"topic,omitempty" validate:"required" default:"loggie"` IfRenderTopicFailed RenderTopicFail `yaml:"ifRenderTopicFailed,omitempty"` IgnoreUnknownTopicOrPartition bool `yaml:"ignoreUnknownTopicOrPartition,omitempty"` Balance string `yaml:"balance,omitempty" default:"roundRobin"` BatchSize int `yaml:"batchSize,omitempty"` BatchBytes int32 `yaml:"batchBytes,omitempty"` RetryTimeout time.Duration `yaml:"retryTimeout,omitempty"` WriteTimeout time.Duration `yaml:"writeTimeout,omitempty"` Compression string `yaml:"compression,omitempty" default:"gzip"` SASL SASL `yaml:"sasl,omitempty"` TLS TLS `yaml:"tls,omitempty"` Security map[string]string `yaml:"security,omitempty"` PartitionKey string `yaml:"partitionKey,omitempty"` }
type GSSAPI ¶
type GSSAPI struct { AuthType int `yaml:"authType,omitempty"` KeyTabPath string `yaml:"keyTabPath,omitempty"` KerberosConfigPath string `yaml:"kerberosConfigPath,omitempty"` ServiceName string `yaml:"serviceName,omitempty"` UserName string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` Realm string `yaml:"realm,omitempty"` DisablePAFXFAST bool `yaml:"disablePAFXFAST,omitempty"` }
type RenderTopicFail ¶ added in v1.5.0
type TLS ¶
type TLS struct { Enabled bool `yaml:"enabled,omitempty"` CaCertFiles string `yaml:"caCertFiles,omitempty"` ClientCertFile string `yaml:"clientCertFile,omitempty"` ClientKeyFile string `yaml:"clientKeyFile,omitempty"` TrustStoreLocation string `yaml:"trustStoreLocation,omitempty"` TrustStorePassword string `yaml:"trustStorePassword,omitempty"` KeystoreLocation string `yaml:"keystoreLocation,omitempty"` KeystorePassword string `yaml:"keystorePassword,omitempty"` EndpIdentAlgo string `yaml:"endpIdentAlgo,omitempty"` }
Click to show internal directories.
Click to hide internal directories.