Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TxnBufferLimit = 1024 MaxNrGravity = 16 )
Functions ¶
This section is empty.
Types ¶
type Flush ¶
type Flush struct { Bytes int `mapstructure:"bytes" toml:"bytes" json:"bytes"` Messages int `mapstructure:"messages" toml:"messages" json:"messages"` Frequency string `mapstructure:"frequency" toml:"frequency" json:"frequency"` MaxMessages int `mapstructure:"max-messages" toml:"max-messages" json:"max-messages"` }
type KafkaCommonConfig ¶
type KafkaConsumerConfig ¶
type KafkaConsumerConfig struct { MaxWaitTime string `mapstructure:"max-wait-time" toml:"max-wait-time" json:"max-wait-time"` // Fetch is the namespace for controlling how many bytes are retrieved by any // given request. Fetch Fetch `mapstructure:"fetch" toml:"fetch" json:"fetch"` Offsets Offsets `mapstructure:"offsets" toml:"offsets" json:"offsets"` }
type KafkaGlobalConfig ¶
type KafkaGlobalConfig struct { BrokerAddrs []string `mapstructure:"broker-addrs" toml:"broker-addrs" json:"broker-addrs"` CertFile string `mapstructure:"cert-file" toml:"cert-file" json:"cert-file"` KeyFile string `mapstructure:"key-file" toml:"key-file" json:"key-file"` CaFile string `mapstructure:"ca-file" toml:"ca-file" json:"ca-file"` VerifySSL bool `mapstructure:"verify-ssl" toml:"verify-ssl" json:"verify-ssl"` Mode string `mapstructure:"mode" toml:"mode" json:"mode"` Producer *KafkaProducerConfig `mapstructure:"producer" toml:"producer" json:"producer"` Net *KafkaNetConfig `mapstructure:"net" toml:"net" json:"net"` }
type KafkaNetConfig ¶
type KafkaNetConfig struct { // SASL based authentication with broker. While there are multiple SASL authentication methods // the current implementation is limited to plaintext (SASL/PLAIN) authentication SASL SASL `mapstructure:"sasl" toml:"sasl" json:"sasl"` // KeepAlive specifies the keep-alive period for an active network connection. // If zero, keep-alives are disabled. (default is 0: disabled). KeepAlive time.Duration }
type KafkaProducerConfig ¶
type KafkaProducerConfig struct {
Flush Flush `mapstructure:"flush" toml:"flush" json:"flush"`
}
type Offsets ¶
type Offsets struct {
CommitInterval string `toml:"commit-interval" json:"commit-interval"`
}
type TableConfig ¶
type TableConfig struct { Schema string `toml:"schema" json:"schema"` Table string `toml:"table" json:"table"` RenameColumns map[string]string `toml:"rename-columns" json:"rename-columns"` IgnoreColumns []string `toml:"ignore-columns" json:"ignore-columns"` PkOverride []string `toml:"pk-override" json:"pk-override"` ScanColumn string `toml:"scan-column" json:"scan-column"` ScanType string `toml:"scan-type" json:"scan-type"` }
func GetTableConfig ¶
func GetTableConfig(tableConfig []TableConfig, schema string, table string) *TableConfig
Click to show internal directories.
Click to hide internal directories.