Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking: rename RetryBackoff to RetryBackoffFn
This reads more accurately when specifying options. All options that take functions now somewhat imply they take a function, or they more obviously already take a function: func CommitCallback(fn func(*Client, *kmsg.OffsetCommitRequest, *kmsg.OffsetCommitResponse, error)) GroupOpt func OnAssigned(onAssigned func(context.Context, *Client, map[string][]int32)) GroupOpt func OnLost(onLost func(context.Context, *Client, map[string][]int32)) GroupOpt func OnRevoked(onRevoked func(context.Context, *Client, map[string][]int32)) GroupOpt func BasicLogger(dst io.Writer, level LogLevel, prefixFn func() string) Logger func Dialer(fn func(ctx context.Context, network, host string) (net.Conn, error)) Opt func RetryBackoffFn(backoff func(int) time.Duration) Opt func RetryTimeoutFn(t func(int16) time.Duration) Opt func BasicConsistentPartitioner(partition func(string) func(r *Record, n int) int) Partitioner func KafkaHasher(hashFn func([]byte) uint32) PartitionerHasher func SaramaHasher(hashFn func([]byte) uint32) PartitionerHasher func OnDataLoss(fn func(string, int32)) ProducerOpt
- Loading branch information