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
removePartitions
removePartitions closes partitions revoked during a rebalance, committing first when configured
offset_manager.go:486
↓ 2 callers
Function
requireJoinsStayAt
requireJoinsStayAt checks that the member does not join again for a while.
consumer_group_cooperative_test.go:471
↓ 2 callers
Method
reserveLength
()
length_field.go:83
↓ 2 callers
Method
resize
resize rebuilds buf with head back at index 0, sized to 2*count but never below minLen so the zero value of Queue grows on first Add.
internal/queue/queue.go:22
↓ 2 callers
Method
resurrectDeadBrokers
()
client.go:776
↓ 2 callers
Method
retryJoinSync
(ctx context.Context, topics []string, held *heldAssignment, retries int, refreshCoordinator bool)
consumer_group.go:308
↓ 2 callers
Method
retryMessage
(msg *ProducerMessage, err error)
async_producer.go:1818
↓ 2 callers
Method
retryMessages
(batch []*ProducerMessage, err error)
async_producer.go:1827
↓ 2 callers
Method
revoke
(topic string, partition int32)
functional_consumer_group_java_interop_test.go:78
↓ 2 callers
Method
run
()
async_producer.go:1122
↓ 2 callers
Function
runConfiguredSaramaInteropMember
(t *testing.T, groupID, name, topic string, configure func(*Config), primary BalanceStrategy, extra ...Balance
functional_consumer_group_java_interop_test.go:365
↓ 2 callers
Function
runConsumerLeaderRefreshErrorTestWithConfig
(t *testing.T, config *Config)
consumer_test.go:417
↓ 2 callers
Method
safelyApplyInterceptor
(interceptor ProducerInterceptor)
interceptors.go:25
↓ 2 callers
Method
send
b.lock must be held by caller a non-nil res results in a response promise being created
broker.go:1145
↓ 2 callers
Method
sendAndReceiveSASLHandshake
(saslType SASLMechanism, version int16)
broker.go:1658
↓ 2 callers
Method
sendInternal
b.lock must be held by caller
broker.go:1189
↓ 2 callers
Method
sendWithPromise
b.lock must be held by caller
broker.go:1170
↓ 2 callers
Function
serveRawConn
serveRawConn accepts a single connection on a loopback listener and passes it to serve, then holds it open until the client closes it.
broker_test.go:431
↓ 2 callers
Function
sessionCauseToReason
(cause error)
consumer_group_session.go:487
↓ 2 callers
Function
setupToxiProxies
setupToxiProxies will configure the toxiproxy proxies with routes for the kafka brokers if they don't already exist
functional_test.go:131
↓ 2 callers
Method
signal
(sig string)
functional_consumer_group_java_interop_test.go:283
↓ 2 callers
Function
sortPartitions
(currentAssignment map[string][]topicPartitionAssignment, partitionsWithADifferentPreviousAssignment map[topic
balance_strategy.go:720
↓ 2 callers
Function
sortPartitionsByPotentialConsumerAssignments
(partition2AllPotentialConsumers map[topicPartitionAssignment][]string)
balance_strategy.go:800
↓ 2 callers
Method
spn
(broker *Broker)
gssapi_kerberos.go:204
↓ 2 callers
Method
startClaims
(claims map[string][]int32)
consumer_group_session.go:178
↓ 2 callers
Function
startCooperativeGroup
(t *testing.T, coord *mockCooperativeCoordinator, config *Config, h ConsumerGroupHandler)
consumer_group_cooperative_test.go:409
↓ 2 callers
Function
startJavaConsumerGroupMember
startJavaConsumerGroupMember does not wait for an assignment, which a member subscribed to a topic the cluster lacks never gets
functional_consumer_group_java_interop_test.go:170
↓ 2 callers
Method
stopConsuming
()
consumer.go:1417
↓ 2 callers
Method
subscriptionMetadata
subscriptionMetadata builds the ConsumerGroupMemberMetadata for a single strategy in a JoinGroup request. If the strategy implements SubscriptionUserD
consumer_group.go:624
↓ 2 callers
Function
supportedProtocols
(strategy BalanceStrategy)
rebalance_protocol.go:43
↓ 2 callers
Function
tearDownDockerTestEnvironment
(ctx context.Context, env *testEnvironment)
functional_test.go:295
↓ 2 callers
Method
throttleTime
()
broker.go:2049
↓ 2 callers
Function
topicWithEvenLeaders
(t *testing.T, adminClient ClusterAdmin, client Client, numPartitions int32)
functional_admin_test.go:20
↓ 2 callers
Method
transitionGeneration
transitionGeneration keeps commits out while the coordinator establishes the next generation and member id
offset_manager.go:281
↓ 2 callers
Method
triggerRebalance
(cause error)
consumer_group_cooperative.go:158
↓ 2 callers
Method
updateLeader
()
async_producer.go:951
↓ 2 callers
Method
updateRequestLatencyAndInFlightMetrics
(requestLatency time.Duration)
broker.go:1994
↓ 2 callers
Function
validServerNameTLS
(addr string, cfg *tls.Config)
broker.go:2165
↓ 2 callers
Function
validateGroupInstanceId
(id string)
config.go:960
↓ 2 callers
Function
verifyProducerConfig
(config *Config)
sync_producer.go:152
↓ 2 callers
Function
verifyValidityAndBalance
(t *testing.T, consumers map[string]ConsumerGroupMemberMetadata, plan BalanceStrategyPlan)
balance_strategy_test.go:2195
↓ 2 callers
Function
version
()
version.go:14
↓ 2 callers
Method
wait
wait returns the channel on which you can wait for the refresh to complete. You need to hold the lock to call this method.
metadata.go:202
↓ 2 callers
Method
waitFor
(cond func(map[string][]int32) bool, what string)
functional_consumer_group_java_interop_test.go:117
↓ 2 callers
Function
waitForConsume
(t *testing.T, consumeDone <-chan error)
consumer_group_cooperative_test.go:445
↓ 2 callers
Method
waitIfThrottled
()
broker.go:2075
↓ 2 callers
Method
waitUntilJoined
()
functional_consumer_group_java_interop_test.go:135
↓ 2 callers
Method
waitUntilMuted
waitUntilMuted blocks until all partitions in the set can be muted, then mutes them. Returns false if the muter was closed before all partitions could
async_producer.go:207
↓ 2 callers
Method
watchPartitionNumbers
watchPartitionNumbers replaces the leader-only watcher for each generation
consumer_group_session.go:138
↓ 2 callers
Function
writeRawResponse
writeRawResponse writes a v0 response header declaring length, followed by body.
broker_test.go:450
↓ 2 callers
Function
zstdCompress
(params ZstdEncoderParams, dst, src []byte)
zstd.go:119
↓ 1 callers
Method
AddBlock
(topic string, partition int32, block *OffsetFetchResponseBlock)
offset_fetch_response.go:68
↓ 1 callers
Method
AddBlock
(topic string, partitionID int32, timestamp int64, maxOffsets int32)
offset_request.go:258
↓ 1 callers
Method
AddControlRecord
(topic string, partition int32, offset int64, producerID int64, recordType ControlRecordType)
fetch_response.go:732
↓ 1 callers
Method
AddControlRecordWithTimestamp
(topic string, partition int32, offset int64, producerID int64, recordType ControlRecordType, timestamp time.T
fetch_response.go:686
↓ 1 callers
Method
AddError
(topic string, partition int32, kerror KError, message *string)
alter_partition_reassignments_response.go:46
↓ 1 callers
Method
AddError
(topic string, partition int32, errorCode KError)
delete_offsets_response.go:20
↓ 1 callers
Method
AddGroupAssignmentMember
( memberId string, memberAssignment *ConsumerGroupMemberAssignment, )
sync_group_request.go:199
↓ 1 callers
Method
AddGroupBlock
AddGroupBlock adds a block for groupID/topic/partition, creating the group entry if needed. On v0-7 it falls back to AddBlock and ignores groupID.
offset_fetch_response.go:455
↓ 1 callers
Method
AddGroupPartition
AddGroupPartition adds a partition under group in a v8+ batch, creating the group entry if absent.
offset_fetch_request.go:368
↓ 1 callers
Method
AddGroupProtocolMetadata
(name string, metadata *ConsumerGroupMemberMetadata)
join_group_request.go:278
↓ 1 callers
Method
AddMessageToTxn
(msg *sarama.ConsumerMessage, groupId string, metadata *string)
mocks/sync_producer.go:297
↓ 1 callers
Method
AddMessageToTxnWithGroupMetadata
(msg *ConsumerMessage, groupMetadata *ConsumerGroupMetadata, metadata *string)
async_producer.go:456
↓ 1 callers
Method
AddOffsetsToTxn
(offsets map[string][]*sarama.PartitionOffsetMetadata, groupId string)
mocks/sync_producer.go:289
↓ 1 callers
Method
AddPartition
(topic string, partitionID int32)
offset_fetch_request.go:10
↓ 1 callers
Method
AddPartition
(topic string, partitionID int32)
delete_offsets_request.go:95
↓ 1 callers
Method
AddRecordBatch
(topic string, partition int32, key, value Encoder, offset int64, producerID int64, isTransactional bool)
fetch_response.go:728
↓ 1 callers
Method
AddRecordBatchWithTimestamp
AddRecordBatchWithTimestamp is similar to AddRecordWithTimestamp But instead of appending 1 record to a batch, it append a new batch containing 1 reco
fetch_response.go:664
↓ 1 callers
Method
AddSet
(topic string, partition int32, set *MessageSet)
produce_request.go:312
↓ 1 callers
Method
AlterConfigs
AlterConfigs sends a request to alter config and return a response or error
broker.go:947
↓ 1 callers
Method
AssertNoInitialValues
()
functional_consumer_group_test.go:737
↓ 1 callers
Method
AssignmentData
AssignmentData serializes the set of topics currently assigned to the specified member as part of the supplied balance plan
balance_strategy.go:340
↓ 1 callers
Method
AsyncClose
()
offset_manager.go:740
↓ 1 callers
Method
AsyncClose
()
async_producer.go:584
↓ 1 callers
Method
AsyncClose
PartitionConsumer interface implementation AsyncClose implements the AsyncClose method from the sarama.PartitionConsumer interface.
mocks/consumer.go:273
↓ 1 callers
Method
AsyncClose
Implement Producer interface AsyncClose corresponds with the AsyncClose method of sarama's Producer implementation. By closing a mock producer, you
mocks/async_producer.go:129
↓ 1 callers
Method
Authorize
Authorize performs the kerberos auth handshake for authorization
gssapi_kerberos.go:238
↓ 1 callers
Method
AuthorizeV2
AuthorizeV2 performs the SASL v2 GSSAPI authentication with the Kafka broker.
gssapi_kerberos.go:286
↓ 1 callers
Method
BeginTxn
()
mocks/sync_producer.go:261
↓ 1 callers
Method
Claims
()
consumer_group_session.go:227
↓ 1 callers
Method
Close
Close stops the OffsetManager from managing offsets. It is required to call this function before an OffsetManager object passes out of scope, as it wi
offset_manager.go:22
↓ 1 callers
Method
Close
()
client.go:307
↓ 1 callers
Method
Close
()
functional_consumer_group_test.go:415
↓ 1 callers
Method
Close
()
examples/http_server/http_server.go:92
↓ 1 callers
Method
Commit
()
offset_manager.go:274
↓ 1 callers
Method
Commit
Commit the offset to the backend Note: calling Commit performs a blocking synchronous operation.
consumer_group_session.go:42
↓ 1 callers
Method
CommitTxn
()
mocks/sync_producer.go:269
↓ 1 callers
Method
Config
()
client.go:247
↓ 1 callers
Method
CreateACLs
Creates access control lists (ACLs) which are bound to specific resources. This operation is not transactional so it may succeed for some ACLs while f
admin.go:109
↓ 1 callers
Method
CreateProxy
( name string, listenAddr string, targetAddr string, )
internal/toxiproxy/client.go:38
↓ 1 callers
Method
DeleteACL
Deletes access control lists (ACLs) according to the supplied filters. This operation is not transactional so it may succeed for some ACLs while fail
admin.go:119
↓ 1 callers
Method
DeleteAcls
DeleteAcls sends a delete acl request and returns a response or error
broker.go:858
↓ 1 callers
Method
DescribeAcls
DescribeAcls sends a describe acl request and returns a response or error
broker.go:823
↓ 1 callers
Method
DescribeConfigs
DescribeConfigs sends a request to describe config and returns a response or error
broker.go:935
↓ 1 callers
Method
DescribeConfigs
(resources []*ConfigResource, options DescribeConfigsOptions)
admin.go:892
↓ 1 callers
Method
Errorf
(string, ...any)
mockresponses.go:13
↓ 1 callers
Method
ExpectErrorsDrainedOnClose
ExpectErrorsDrainedOnClose sets an expectation on the partition consumer that the errors channel will be fully drained when Close is called. If this e
mocks/consumer.go:432
↓ 1 callers
Method
ExpectInputWithCheckerFunctionAndSucceed
ExpectInputWithCheckerFunctionAndSucceed sets an expectation on the mock producer that a message will be provided on the input channel. The mock produ
mocks/async_producer.go:247
↓ 1 callers
Method
For
(reqBody versionedDecoder)
mockresponses.go:903
↓ 1 callers
Method
Get
()
broker_test.go:115
← previous
next →
801–900 of 3,900, ranked by callers