Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/sarama
/ functions
Functions
3,668 in github.com/IBM/sarama
⨍
Functions
3,668
◇
Types & classes
511
↓ 1 callers
Method
Swap
(i, j int)
balance_strategy.go:1211
↓ 1 callers
Method
Token
Token returns an access token. The implementation should ensure token reuse so that multiple calls at connect time do not create multiple tokens. The
broker.go:114
↓ 1 callers
Method
Topic
Topic returns the consumed topic name.
consumer_group_session.go:429
↓ 1 callers
Method
Topics
Topics returns the set of available topics as retrieved from the cluster metadata. This method is the same as Client.Topics(), and is provided for con
consumer.go:58
↓ 1 callers
Method
TxnOffsetCommit
TxnOffsetCommit sends a request to commit transaction offsets and returns a response or error
broker.go:907
↓ 1 callers
Method
TxnStatus
()
mocks/sync_producer.go:255
↓ 1 callers
Method
UnmarshalText
UnmarshalText returns a CompressionCodec from its string representation.
message.go:46
↓ 1 callers
Method
UnmarshalText
UnmarshalText takes a text representation of the operation and converts it to an AclOperation
acl_types.go:64
↓ 1 callers
Method
UnmarshalText
UnmarshalText takes a text representation of the permission type and converts it to an AclPermissionType
acl_types.go:118
↓ 1 callers
Method
UnmarshalText
UnmarshalText takes a text representation of the resource type and converts it to an AclResourceType
acl_types.go:170
↓ 1 callers
Method
UnmarshalText
UnmarshalText takes a text representation of the resource pattern type and converts it to an AclResourcePatternType
acl_types.go:221
↓ 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:327
↓ 1 callers
Method
abandonBrokerConsumer
(brokerWorker *brokerConsumer)
consumer.go:286
↓ 1 callers
Function
acquireLengthField
()
length_field.go:16
↓ 1 callers
Method
addOffsetsToTxn
add specified offsets to current transaction.
transaction_manager.go:275
↓ 1 callers
Method
addPartitionMovementRecord
(partition topicPartitionAssignment, pair consumerPair)
balance_strategy.go:1010
↓ 1 callers
Function
addResetPeerToxic
(t testing.TB, proxy *toxiproxy.Proxy)
functional_test.go:485
↓ 1 callers
Method
addTopics
addTopics adds topics to the refresh. You need to hold the lock to call this method.
metadata.go:112
↓ 1 callers
Method
addTopics
(topics []string)
metadata.go:126
↓ 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:89
↓ 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
anyPartition
(predicate func(topic string, partition int32, pSet *partitionSet) bool)
produce_set.go:291
↓ 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:152
↓ 1 callers
Function
assertGroupOffset
assertGroupOffset asserts result has groupID with the expected offset at topic/partition.
admin_test.go:2167
↓ 1 callers
Function
assertMessageKey
(t *testing.T, msg *ConsumerMessage, expectedKey Encoder)
consumer_test.go:2057
↓ 1 callers
Function
assertMessageValue
(t *testing.T, msg *ConsumerMessage, expectedValue Encoder)
consumer_test.go:2066
↓ 1 callers
Function
assertRecordType
(t *testing.T, r *ControlRecord, expected ControlRecordType)
control_record_test.go:44
↓ 1 callers
Method
asyncClosePOMs
()
offset_manager.go:487
↓ 1 callers
Method
authenticateViaSASLv0
()
broker.go:1488
↓ 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:1777
↓ 1 callers
Method
balance
(strategy BalanceStrategy, members map[string]ConsumerGroupMemberMetadata)
consumer_group.go:730
↓ 1 callers
Method
balance
Balance assignments across consumers for maximum fairness and stickiness.
balance_strategy.go:348
↓ 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
bumpEpoch
()
transaction_manager.go:244
↓ 1 callers
Method
bumpIdempotentProducerEpoch
()
async_producer.go:1672
↓ 1 callers
Method
cachedCoordinator
(consumerGroup string)
client.go:1162
↓ 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:1171
↓ 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:687
↓ 1 callers
Method
chooseStartingOffset
(offset int64)
consumer.go:686
↓ 1 callers
Method
clear
()
metadata.go:137
↓ 1 callers
Method
clear
clear clears the refresh state. You need to hold the lock to call this method.
metadata.go:188
↓ 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:473
↓ 1 callers
Method
computeAttributes
()
record_batch.go:216
↓ 1 callers
Method
computeBackoff
(retries int)
offset_manager.go:143
↓ 1 callers
Method
computeSaslSessionLifetime
(res *SaslAuthenticateResponse)
broker.go:1866
↓ 1 callers
Function
consMsg2Str
(consMsg *ConsumerMessage)
functional_consumer_test.go:497
↓ 1 callers
Method
consume
(topic string, partition int32)
consumer_group_session.go:228
↓ 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:368
↓ 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:457
↓ 1 callers
Method
createKrb5Token
Construct Kerberos AP_REQ package, conforming to RFC-4120 https://tools.ietf.org/html/rfc4120#page-84
gssapi_kerberos.go:114
↓ 1 callers
Method
createSaslAuthenticateRequest
(msg []byte)
broker.go:1820
↓ 1 callers
Function
createTLSConfiguration
()
examples/sasl_scram_client/main.go:37
↓ 1 callers
Method
decode
(pd packetDecoder, version int16)
alter_configs_request.go:97
↓ 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:228
↓ 1 callers
Method
decode
https://cwiki.apache.org/confluence/display/KAFKA/KIP-226+-+Dynamic+Broker+Configuration
describe_configs_response.go:318
↓ 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
deregisterController
deregisterController removes the cached controllerID
client.go:569
↓ 1 callers
Method
describeClusterUsingAPI
()
admin.go:403
↓ 1 callers
Method
describeClusterUsingMetadata
()
admin.go:435
← previous
next →
901–1,000 of 3,668, ranked by callers