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
↓ 1 callers
Method
Unregister
(name string)
metrics.go:104
↓ 1 callers
Function
WithCustomFallbackPartitioner
WithCustomFallbackPartitioner lets you specify what HashPartitioner should be used in case a Distribution Key is empty
partitioner.go:74
↓ 1 callers
Function
WithCustomHashFunction
WithCustomHashFunction lets you specify what hash function to use for the partitioning
partitioner.go:67
↓ 1 callers
Function
WithHashUnsigned
WithHashUnsigned means the partitioner treats the hashed value as unsigned when partitioning. This is intended to be combined with the crc32 hash alg
partitioner.go:60
↓ 1 callers
Method
ZeroPartitions
()
offset_fetch_request.go:334
↓ 1 callers
Function
acquireLengthField
()
length_field.go:16
↓ 1 callers
Method
addOffsetsToTxn
add specified offsets to current transaction.
transaction_manager.go:303
↓ 1 callers
Method
addPartitionMovementRecord
(partition topicPartitionAssignment, pair consumerPair)
balance_strategy.go:1016
↓ 1 callers
Function
addResetPeerToxic
(t testing.TB, proxy *toxiproxy.Proxy)
functional_test.go:496
↓ 1 callers
Method
addTopics
addTopics adds topics to the refresh. You need to hold the lock to call this method.
metadata.go:111
↓ 1 callers
Method
addTopics
(topics []string)
metadata.go:125
↓ 1 callers
Method
addTopicsFrom
addTopicsFrom adds topics from the next refresh to the current refresh. You need to hold the lock to call this method.
metadata.go:88
↓ 1 callers
Function
adjustCooperativeAssignment
adjustCooperativeAssignment withholds partitions until their old owner revokes them
balance_strategy_cooperative_sticky.go:59
↓ 1 callers
Method
adjustLength
Called during pop() to adjust the length of the field. It should return the difference in bytes between the last computed length and current length.
packet_encoder.go:75
↓ 1 callers
Method
allPartitionsInTxn
allPartitionsInTxn reports whether every partition in the set has been added to the current transaction.
transaction_manager.go:874
↓ 1 callers
Method
appendGSSAPIHeader
Append the GSS-API header to the payload, conforming to RFC-2743 Section 3.1, Mechanism-Independent Token Format https://tools.ietf.org/html/rfc2743#
gssapi_kerberos.go:155
↓ 1 callers
Function
assertGroupOffset
assertGroupOffset asserts result has groupID with the expected offset at topic/partition.
admin_test.go:2597
↓ 1 callers
Function
assertMessageKey
(t *testing.T, msg *ConsumerMessage, expectedKey Encoder)
consumer_test.go:2153
↓ 1 callers
Function
assertMessageValue
(t *testing.T, msg *ConsumerMessage, expectedValue Encoder)
consumer_test.go:2162
↓ 1 callers
Function
assertRecordType
(t *testing.T, r *ControlRecord, expected ControlRecordType)
control_record_test.go:44
↓ 1 callers
Method
asyncClosePOMs
()
offset_manager.go:474
↓ 1 callers
Method
authenticateViaSASLv0
()
broker.go:1572
↓ 1 callers
Method
awaitClaims
claims resolve their start offsets when created, so wait for all of them before producing to a randomly selected partition
functional_producer_test.go:388
↓ 1 callers
Function
awaitMuterBlocked
(t *testing.T, m *partitionMuter, set *produceSet)
async_producer_test.go:2025
↓ 1 callers
Method
balance
(strategy BalanceStrategy, members map[string]ConsumerGroupMemberMetadata)
consumer_group.go:747
↓ 1 callers
Method
balance
Balance assignments across consumers for maximum fairness and stickiness.
balance_strategy.go:348
↓ 1 callers
Method
blockNextSync
()
consumer_group_cooperative_test.go:237
↓ 1 callers
Method
borrow
()
examples/txn_producer/main.go:193
↓ 1 callers
Method
borrow
(topic string, partition int32)
examples/exactly_once/main.go:338
↓ 1 callers
Function
boundedDecompress
boundedDecompress reads from a streaming decompressor into a pooled buffer, capping the read at limit+1 bytes so an oversized batch is caught before i
decompress.go:47
↓ 1 callers
Function
boundedSnappyDecode
boundedSnappyDecode decodes xerial/snappy into a capped buffer grown on demand up to limit. DecodeCapped returns ErrDstTooSmall rather than writing pa
decompress.go:73
↓ 1 callers
Function
boundedZstdDecode
boundedZstdDecode decodes into a pooled buffer using a decoder whose max memory is capped at limit, so an oversized frame fails without allocating its
decompress.go:115
↓ 1 callers
Function
buildTargetAssignment
buildTargetAssignment grows each partition's replica list to targetRF by appending the least-used broker IDs not already in the partition's list. Exis
examples/alter_partition_reassignments/main.go:149
↓ 1 callers
Method
bumpIdempotentProducerEpoch
()
async_producer.go:1741
↓ 1 callers
Method
cachedCoordinator
(consumerGroup string)
client.go:1200
↓ 1 callers
Method
cachedLeader
(topic string, partitionID int32)
client.go:873
↓ 1 callers
Method
cachedMetadata
(topic string, partitionID int32)
client.go:830
↓ 1 callers
Method
cachedTransactionCoordinator
(transactionID string)
client.go:1209
↓ 1 callers
Method
check
Indicates that all required data is now available to calculate and check the field. SaveOffset is guaranteed to have been called first. The implementa
packet_decoder.go:71
↓ 1 callers
Method
checkSeedBrokersHealth
(brokers []*Broker)
client.go:679
↓ 1 callers
Method
chooseStartingOffset
(offset int64)
consumer.go:704
↓ 1 callers
Method
claimCount
(topic string, partition int32)
functional_consumer_group_java_interop_test.go:431
↓ 1 callers
Method
clear
()
metadata.go:136
↓ 1 callers
Method
clear
clear clears the refresh state. You need to hold the lock to call this method.
metadata.go:190
↓ 1 callers
Method
clear
()
examples/txn_producer/main.go:225
↓ 1 callers
Method
clear
()
examples/exactly_once/main.go:372
↓ 1 callers
Method
collectQueryStringData
()
examples/http_server/http_server.go:118
↓ 1 callers
Method
comparedValue
()
balance_strategy.go:479
↓ 1 callers
Method
computeAttributes
()
record_batch.go:257
↓ 1 callers
Method
computeSaslSessionLifetime
(res *SaslAuthenticateResponse)
broker.go:1957
↓ 1 callers
Function
consMsg2Str
(consMsg *ConsumerMessage)
functional_consumer_test.go:497
↓ 1 callers
Method
consume
(ctx context.Context, topic string, partition int32)
consumer_group_session.go:299
↓ 1 callers
Method
consumeCooperative
consumeCooperative keeps one session while its assignment changes
consumer_group_cooperative.go:11
↓ 1 callers
Function
consumeKeyedFromPartition
consumeKeyedFromPartition consumes up to count messages from a specific partition, returning them as key+value pairs.
functional_java_interop_test.go:370
↓ 1 callers
Function
consumeWithJava
(t *testing.T, topic string, startOffset int64, count int)
functional_java_interop_test.go:134
↓ 1 callers
Function
consumeWithSarama
(t *testing.T, topic string, startOffset int64, count int)
functional_java_interop_test.go:85
↓ 1 callers
Function
convertDescribeClusterBrokers
(entries []*DescribeClusterBroker)
admin.go:458
↓ 1 callers
Method
createKrb5Token
Construct Kerberos AP_REQ package, conforming to RFC-4120 https://tools.ietf.org/html/rfc4120#page-84
gssapi_kerberos.go:117
↓ 1 callers
Method
createSaslAuthenticateRequest
(msg []byte)
broker.go:1911
↓ 1 callers
Function
createTLSConfiguration
()
examples/sasl_scram_client/main.go:37
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
alter_configs_request.go:98
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
offset_commit_request.go:40
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
api_versions_response.go:34
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
alter_client_quotas_request.go:117
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
alter_client_quotas_request.go:184
↓ 1 callers
Method
decode
(pd packetDecoder)
alter_partition_reassignments_response.go:20
↓ 1 callers
Method
decode
(pd packetDecoder)
alter_partition_reassignments_request.go:16
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
fetch_request.go:37
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
offset_request.go:28
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_groups_response.go:174
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_groups_response.go:271
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
metadata_response.go:25
↓ 1 callers
Method
decode
(pd packetDecoder)
list_partition_reassignments_response.go:27
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_client_quotas_request.go:132
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
incremental_alter_configs_request.go:106
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
incremental_alter_configs_request.go:159
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_cluster_response.go:158
↓ 1 callers
Method
decode
(pd packetDecoder)
join_group_request.go:10
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_log_dirs_response.go:159
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_log_dirs_response.go:231
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_log_dirs_response.go:288
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_configs_response.go:237
↓ 1 callers
Method
decode
https://cwiki.apache.org/confluence/display/KAFKA/KIP-226+-+Dynamic+Broker+Configuration
describe_configs_response.go:327
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
alter_client_quotas_response.go:107
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
sync_group_request.go:23
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
describe_client_quotas_response.go:148
↓ 1 callers
Method
deleteRecordsFromLeaders
deleteRecordsFromLeaders sends a DeleteRecords request to each partition leader and returns the error for each partition that failed
admin.go:795
↓ 1 callers
Method
describeClusterUsingAPI
()
admin.go:410
↓ 1 callers
Method
describeClusterUsingMetadata
()
admin.go:439
↓ 1 callers
Function
describeTopic
describeTopic returns the current replica set for every partition, indexed by partition ID. The inner slice mirrors what Kafka stores: an ordered list
examples/alter_partition_reassignments/main.go:122
↓ 1 callers
Function
diffClaims
diffClaims returns the claims in a that are absent from b.
consumer_group_cooperative.go:146
↓ 1 callers
Method
dispatch
()
consumer.go:682
↓ 1 callers
Function
doListenerTLSTest
(t *testing.T, expectSuccess bool, serverConfig, clientConfig *tls.Config)
client_tls_test.go:185
↓ 1 callers
Function
downgradeFlexibleDecoder
(pd packetDecoder)
encoder_decoder.go:139
↓ 1 callers
Function
downgradeFlexibleEncoder
(pe packetEncoder)
encoder_decoder.go:146
↓ 1 callers
Function
dupInt32Slice
(input []int32)
utils.go:34
↓ 1 callers
Function
electPreferredLeaders
(partitions map[string][]int32)
functional_test.go:584
↓ 1 callers
Method
enableThrottleWaits
enableThrottleWaits enables throttle waits for a newly opened connection without discarding the remaining broker-provided throttle duration.
broker.go:2114
↓ 1 callers
Method
encode
(pe packetEncoder)
find_coordinator_response.go:56
↓ 1 callers
Method
encode
(key, value packetEncoder)
control_record.go:63
← previous
next →
1,001–1,100 of 3,900, ranked by callers