Versions in this module Expand all Collapse all v1 v1.0.1 Aug 23, 2026 v1.0.0 Aug 23, 2026 Changes in this version + var ErrNoCommittedOffsets = errors.New("source/kafka: lag requires at least one committed offset") + var ErrNoDLQTopic = errors.New("source/kafka: term requested but no dead-letter topic configured") + var ErrNoSeedBrokers = errors.New("source/kafka: no seed brokers configured") + var ErrTermInsideTransaction = errors.New(...) + type Inlet struct + func New(opts ...Option) (*Inlet, error) + func (in *Inlet) As(target any) bool + func (in *Inlet) Close() error + func (in *Inlet) Subscribe(_ context.Context, cfg source.SubscribeConfig) (source.Subscription, error) + type Option func(*config) + func WithBalancer(balancers ...kgo.GroupBalancer) Option + func WithClient(client *kgo.Client) Option + func WithClientID(id string) Option + func WithClientOptions(opts ...kgo.Opt) Option + func WithDLQTopic(topic string) Option + func WithMaxPollRecords(n int) Option + func WithSASL(mechanisms ...sasl.Mechanism) Option + func WithSeedBrokers(brokers ...string) Option + func WithStartOffset(o StartOffset) Option + func WithTLS(cfg *tls.Config) Option + func WithTransactional(transactionalID string) Option + type StartOffset uint8 + const StartEarliest + const StartLatest