Documentation ¶
Index ¶
- func RegisterSASL(mechanism Mechanism)
- type Ack
- type Compression
- type Config
- type ConsumerConfig
- type Generic
- type GroupBalancer
- type IsolationLevel
- type Logger
- type Mechanism
- type MechanismOptions
- type MetaConfig
- type OffsetManagerConfig
- type Partitioner
- type PlainSASL
- type PlainSASLConfig
- type ProducerConfig
- type SASLConfig
- type SSLConfig
- type ScramSASL
- type ScramSASLConfig
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSASL ¶
func RegisterSASL(mechanism Mechanism)
Types ¶
type Compression ¶
func (*Compression) Config ¶
func (compression *Compression) Config() (v kgo.CompressionCodec)
type Config ¶
type Config struct { Generic Producers ProducerConfig `json:"producers"` Consumers map[string]ConsumerConfig `json:"consumers"` }
type ConsumerConfig ¶
type ConsumerConfig struct { MaxPollRecords int `json:"maxPollRecords"` PartitionBuffer int `json:"partitionBuffer"` MaxWait time.Duration `json:"maxWait"` MinBytes string `json:"minBytes"` MaxBytes string `json:"maxBytes"` MaxPartitionBytes string `json:"maxPartitionBytes"` Isolation IsolationLevel `json:"isolation"` KeepControl bool `json:"keepControl"` Rack string `json:"rack"` MaxConcurrentFetches int `json:"maxConcurrentFetches"` KeepRetryableFetchErrors bool `json:"keepRetryableFetchErrors"` Group string `json:"group"` // group we are in Topics []string `json:"topics"` Balancers []GroupBalancer `json:"balancers"` // balancers we can use SessionTimeout time.Duration `json:"sessionTimeout"` RebalanceTimeout time.Duration `json:"rebalanceTimeout"` HeartbeatInterval time.Duration `json:"heartbeatInterval"` RequireStable bool `json:"requireStable"` }
type Generic ¶
type Generic struct { Brokers []string `json:"brokers"` DialTimeout time.Duration `json:"dialTimeout"` RequestTimeoutOverhead time.Duration `json:"requestTimeoutOverhead"` ConnIdleTimeout time.Duration `json:"connIdleTimeout"` Retries int `json:"retries"` RetryTimeout time.Duration `json:"retryTimeout"` MaxBrokerWriteBytes string `json:"maxBrokerWriteBytes"` MaxBrokerReadBytes string `json:"maxBrokerReadBytes"` AllowAutoTopicCreation bool `json:"allowAutoTopicCreation"` Meta MetaConfig `json:"meta"` SASL SASLConfig `json:"sasl"` SSL SSLConfig `json:"ssl"` }
type GroupBalancer ¶
type GroupBalancer string
func (GroupBalancer) Config ¶
func (config GroupBalancer) Config() kgo.GroupBalancer
type IsolationLevel ¶
type IsolationLevel string
func (IsolationLevel) Config ¶
func (config IsolationLevel) Config() kgo.IsolationLevel
type MechanismOptions ¶
type MechanismOptions struct { Log logs.Logger Config configures.Config }
type MetaConfig ¶
type OffsetManagerConfig ¶
type OffsetManagerConfig struct { Name string `json:"name"` Options json.RawMessage `json:"options"` }
type Partitioner ¶
type Partitioner struct { Name string `json:"name"` Options json.RawMessage `json:"options"` }
func (Partitioner) Config ¶
func (partitioner Partitioner) Config() (v kgo.Partitioner, err error)
type PlainSASL ¶
type PlainSASL struct {
// contains filtered or unexported fields
}
func (*PlainSASL) Authenticate ¶
func (*PlainSASL) Construct ¶
func (s *PlainSASL) Construct(options MechanismOptions) (err error)
type PlainSASLConfig ¶
type ProducerConfig ¶
type ProducerConfig struct { Enable bool `json:"enable"` Num int `json:"num"` Ack Ack `json:"ack"` DisableIdempotency bool `json:"disableIdempotency"` MaxInflight int `json:"maxInflight"` // if idempotency is disabled, we allow a configurable max inflight Compressions []Compression `json:"compressions"` MaxRecordBatchBytes string `json:"maxRecordBatchBytes"` MaxBufferedRecords int `json:"maxBufferedRecords"` MaxBufferedBytes string `json:"maxBufferedBytes"` Timeout time.Duration `json:"timeout"` RecordRetries int `json:"recordRetries"` MaxUnknownFailures int `json:"maxUnknownFailures"` Linger time.Duration `json:"linger"` RecordDeliveryTimeout time.Duration `json:"recordDeliveryTimeout"` Partitioner *Partitioner `json:"partitioner"` }
type SASLConfig ¶
type SASLConfig struct { Name string `json:"name"` Options json.RawMessage `json:"options"` }
type ScramSASL ¶
type ScramSASL struct {
// contains filtered or unexported fields
}
func (*ScramSASL) Authenticate ¶
func (*ScramSASL) Construct ¶
func (s *ScramSASL) Construct(options MechanismOptions) (err error)
type ScramSASLConfig ¶
Click to show internal directories.
Click to hide internal directories.