Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/sarama
/ functions
Functions
3,900 in github.com/IBM/sarama
⨍
Functions
3,900
◇
Types & classes
544
↓ 2 callers
Method
Less
(i, j int)
utils.go:26
↓ 2 callers
Method
ListConsumerGroupOffsetsBatch
ListConsumerGroupOffsetsBatch fetches committed offsets for multiple consumer groups in a single round trip per coordinator using OffsetFetch v8+ (KIP
admin.go:142
↓ 2 callers
Method
ListGroups
ListGroups return a list group response or error
broker.go:698
↓ 2 callers
Method
ListOffsets
ListOffsets lists offsets for the specified topic partitions. Each value is OffsetNewest, OffsetOldest, or a timestamp in milliseconds. Results are ke
admin.go:151
↓ 2 callers
Method
Login
()
gssapi_kerberos.go:55
↓ 2 callers
Method
Login
Login will use the given KerberosClient to login and get a ticket for the given spn.
gssapi_kerberos.go:216
↓ 2 callers
Method
Name
()
functional_consumer_group_java_interop_test.go:438
↓ 2 callers
Function
NewConsumerGroupMetadataFromSession
NewConsumerGroupMetadataFromSession builds metadata from a live consumer group session, copying the member ID and generation ID so the broker can fenc
consumer_group_metadata.go:33
↓ 2 callers
Function
NewCreateTopicsRequest
( version KafkaVersion, topicDetails map[string]*TopicDetail, timeout time.Duration, validateOnly bool, )
create_topics_request.go:23
↓ 2 callers
Function
NewCustomHashPartitioner
NewCustomHashPartitioner is a wrapper around NewHashPartitioner, allowing the use of custom hasher. The argument is a function providing the instance,
partitioner.go:145
↓ 2 callers
Function
NewCustomPartitioner
NewCustomPartitioner creates a default Partitioner but lets you specify the behavior of each component via options
partitioner.go:157
↓ 2 callers
Function
NewDeleteTopicsRequest
(version KafkaVersion, topics []string, timeout time.Duration)
delete_topics_request.go:15
↓ 2 callers
Function
NewJoinGroupRequest
(version KafkaVersion)
join_group_request.go:68
↓ 2 callers
Function
NewMockAlterConfigsResponse
(t TestReporter)
mockresponses.go:1025
↓ 2 callers
Function
NewMockAlterPartitionReassignmentsResponse
(t TestReporter)
mockresponses.go:817
↓ 2 callers
Function
NewMockBrokerListener
NewMockBrokerListener behaves like newMockBrokerAddr but accepts connections on the listener specified.
mockbroker.go:440
↓ 2 callers
Function
NewMockDescribeLogDirsResponse
(t TestReporter)
mockresponses.go:1490
↓ 2 callers
Function
NewMockElectLeadersResponse
(t TestReporter)
mockresponses.go:854
↓ 2 callers
Function
NewMockIncrementalAlterConfigsResponse
(t TestReporter)
mockresponses.go:1070
↓ 2 callers
Function
NewMockListPartitionReassignmentsResponse
(t TestReporter)
mockresponses.go:832
↓ 2 callers
Function
NewMurmur2Partitioner
NewMurmur2Partitioner returns a Partitioner that replicates the partitioning behavior of the Apache Kafka Java client's DefaultPartitioner. It uses th
partitioner.go:263
↓ 2 callers
Function
NewOffsetCommitRequest
NewOffsetCommitRequest creates an OffsetCommitRequest with the highest version conf.Version allows and the retention time from conf.Consumer.Offsets.R
offset_commit_request.go:89
↓ 2 callers
Function
NewOffsetRequest
(version KafkaVersion)
offset_request.go:61
↓ 2 callers
Function
NewRoundRobinPartitioner
NewRoundRobinPartitioner returns a Partitioner which walks through the available partitions one at a time.
partitioner.go:118
↓ 2 callers
Function
NewTopicConfig
NewTopicConfig makes a configuration which defaults to 32 partitions for every topic.
mocks/mocks.go:74
↓ 2 callers
Method
Owned
()
functional_consumer_group_java_interop_test.go:439
↓ 2 callers
Method
PauseAll
PauseAll suspends fetching from all partitions. Future calls to the broker will not return any records from these partitions until they have been resu
consumer.go:92
↓ 2 callers
Method
Produce
Produce returns a produce response or error
broker.go:578
↓ 2 callers
Method
RefreshController
RefreshController retrieves the cluster controller from fresh metadata and stores it in the local cache. Requires Kafka 0.10 or higher.
client.go:36
↓ 2 callers
Method
ResumeAll
ResumeAll resumes all partitions which have been paused with Pause()/PauseAll(). New calls to the broker will return records from these partitions if
consumer.go:96
↓ 2 callers
Method
RevokedPartitions
()
functional_consumer_group_java_interop_test.go:440
↓ 2 callers
Method
SendMessageContext
SendMessageContext corresponds with the SendMessageContext method of sarama's SyncProducer implementation. If ctx is already done it uses no expectati
mocks/sync_producer.go:145
↓ 2 callers
Method
SendMessagesContext
SendMessagesContext corresponds with the SendMessagesContext method of sarama's SyncProducer implementation. If ctx is already done and msgs is not em
mocks/sync_producer.go:157
↓ 2 callers
Method
SetLogDirs
(logDirPath string, topicPartitions map[string]int)
mockresponses.go:1494
↓ 2 callers
Method
SetMessageWithKey
(topic string, partition int32, offset int64, key, msg Encoder)
mockresponses.go:370
↓ 2 callers
Method
SetReplicaID
(id int32)
offset_request.go:246
↓ 2 callers
Method
SetSessionLifetimeMs
(sessionLifetimeMs int64)
mockresponses.go:1219
↓ 2 callers
Method
SyncGroup
SyncGroup returns a sync group response or error
broker.go:662
↓ 2 callers
Method
Topics
Topics returns a list of topics, as registered with SetTopicMetadata
mocks/consumer.go:71
↓ 2 callers
Method
UnmarshalText
UnmarshalText takes a text representation of the resource type and converts it to an AclResourceType
acl_types.go:181
↓ 2 callers
Method
Unwrap
()
errors.go:142
↓ 2 callers
Method
abandonBrokerConsumer
(brokerWorker *brokerConsumer)
consumer.go:286
↓ 2 callers
Method
abort
(err error)
consumer.go:1301
↓ 2 callers
Function
acquireCrc32Field
(polynomial crcPolynomial)
crc32_field.go:19
↓ 2 callers
Method
addChild
(child *partitionConsumer)
consumer.go:228
↓ 2 callers
Method
addError
addError adds an error for a topic to the set. The wrap preserves the underlying error for errors.Is/As.
metadata.go:17
↓ 2 callers
Method
addMessage
(msg *Message)
message_set.go:108
↓ 2 callers
Function
allocateResponseBody
allocateResponseBody returns a fresh response struct for the given api key and version, or nil when the key is unknown. Not used at runtime, but mirro
request.go:256
↓ 2 callers
Method
anyPartition
(predicate func(topic string, partition int32, pSet *partitionSet) bool)
produce_set.go:300
↓ 2 callers
Function
areSubscriptionsIdentical
(partition2AllPotentialConsumers map[topicPartitionAssignment][]string, consumer2AllPotentialPartitions map[st
balance_strategy.go:829
↓ 2 callers
Method
assign
(topic string, partition int32)
functional_consumer_group_java_interop_test.go:69
↓ 2 callers
Function
assignPartition
The assignment should improve the overall balance of the partition assignments to consumers.
balance_strategy.go:665
↓ 2 callers
Method
authenticateViaSASLv1
()
broker.go:1583
↓ 2 callers
Method
backoff
(retries int)
async_producer.go:805
↓ 2 callers
Method
backoff
(retries int)
async_producer.go:809
↓ 2 callers
Method
backoffCommit
backoffCommit waits between attempts at a final commit (otherwise a coordinator that is still loading rejects every attempt within milliseconds and th
offset_manager.go:523
↓ 2 callers
Method
backoffs
backoffs returns each backoff the offset manager asked for, in order
offset_manager_test.go:1567
↓ 2 callers
Function
buildClientFirstMessage
Build SASL/OAUTHBEARER initial client response as described by RFC-7628 https://tools.ietf.org/html/rfc7628
broker.go:1924
↓ 2 callers
Method
bumpEpoch
()
transaction_manager.go:272
↓ 2 callers
Method
cachedController
()
client.go:1218
↓ 2 callers
Method
cachedPartitions
(topic string, partitionSet partitionType)
client.go:842
↓ 2 callers
Function
canConsumerParticipateInReassignment
Determine whether a specific consumer should be considered for topic partition assignment.
balance_strategy.go:640
↓ 2 callers
Function
canTopicPartitionParticipateInReassignment
Only consider reassigning those topic partitions that have two or more potential consumers.
balance_strategy.go:660
↓ 2 callers
Method
checkBrokersHealth
()
client.go:692
↓ 2 callers
Method
clear
()
async_producer.go:416
↓ 2 callers
Function
cloneAssignment
(in map[string][]int32)
functional_consumer_group_java_interop_test.go:304
↓ 2 callers
Method
close
close shuts down the muter, waking any goroutines blocked in waitUntilMuted.
async_producer.go:271
↓ 2 callers
Method
committed
()
offset_manager_test.go:1592
↓ 2 callers
Method
computeBackoff
()
consumer.go:556
↓ 2 callers
Method
computeBackoff
(retries, maxRetries int)
offset_manager.go:144
↓ 2 callers
Method
constructRequestFor
constructRequestFor also returns the version of each POM it took an offset from
offset_manager.go:361
↓ 2 callers
Function
consumerGroupDescribeResponseFixture
These wire fixtures follow Apache Kafka's ConsumerGroupDescribe schema. Tagged fields occur at every struct boundary, including both assignments.
consumer_group_describe_response_test.go:15
↓ 2 callers
Method
coordinator
()
offset_manager.go:223
↓ 2 callers
Method
copyFunc
(predicate func(topic string, partition int32) bool)
produce_set.go:170
↓ 2 callers
Function
countHistogramValidator
(name string, expectedCount int)
metrics_helpers_test.go:84
↓ 2 callers
Function
countMeterValidator
(name string, expectedCount int)
metrics_helpers_test.go:60
↓ 2 callers
Function
counterValidator
(name string, expectedCount int)
metrics_helpers_test.go:109
↓ 2 callers
Method
crc
(curOffset int, buf []byte)
crc32_field.go:76
↓ 2 callers
Function
createTlsConfiguration
()
examples/http_server/http_server.go:62
↓ 2 callers
Function
currentUnixMilli
()
broker.go:1791
↓ 2 callers
Method
decode
(pd packetDecoder)
records.go:82
↓ 2 callers
Method
decode
(key, value packetDecoder)
control_record.go:24
↓ 2 callers
Method
decodeSet
decodes a message set from a previously encoded bulk-message
message.go:186
↓ 2 callers
Function
decodeUserDataBytes
(t *testing.T, base64Data string)
sticky_assignor_user_data_test.go:46
↓ 2 callers
Function
deepCopyAssignment
(assignment map[string][]topicPartitionAssignment)
balance_strategy.go:821
↓ 2 callers
Function
deserializeTopicPartitionAssignment
Deserialize topic partition assignment data to aid with creation of a sticky assignment.
balance_strategy.go:677
↓ 2 callers
Method
dropPartition
(topic string, partition int32)
produce_set.go:311
↓ 2 callers
Method
encode
(pe packetEncoder)
list_transactions_request.go:55
↓ 2 callers
Method
endTxn
send EndTxn request with commit flag. (true when committing false otherwise)
transaction_manager.go:707
↓ 2 callers
Method
ensureEncoded
()
examples/http_server/http_server.go:154
↓ 2 callers
Function
errorForTopics
(topics []string, err error)
metadata.go:56
↓ 2 callers
Function
filterAssignedPartitions
filterAssignedPartitions returns a map of consumer group members to their list of previously-assigned topic partitions, limited to those topic partiti
balance_strategy.go:691
↓ 2 callers
Method
findCoordinator
(coordinatorKey string, coordinatorType CoordinatorType, attemptsRemaining int)
client.go:1245
↓ 2 callers
Method
finishTransaction
(commit bool)
async_producer.go:536
↓ 2 callers
Method
flushRetryBuffers
()
async_producer.go:922
↓ 2 callers
Method
flushToBroker
()
offset_manager.go:305
↓ 2 callers
Method
flushToBrokerFor
(targets partitionTargets)
offset_manager.go:309
↓ 2 callers
Method
forTopics
(topics []string)
metadata.go:33
↓ 2 callers
Function
fuzzPanic
fuzzPanic turns any panic during decode into a test failure. Decode errors are an acceptable outcome for arbitrary input; panics, OOB slice access, an
encoder_decoder_fuzz_test.go:10
↓ 2 callers
Function
generateMessages
(topic string, partition, messageLoad, messageSize int)
tools/kafka-producer-performance/main.go:203
← previous
next →
601–700 of 3,900, ranked by callers