MCPcopy Create free account

hub / github.com/IBM/sarama / functions

Functions3,900 in github.com/IBM/sarama

↓ 2 callersMethodremovePartitions
removePartitions closes partitions revoked during a rebalance, committing first when configured
offset_manager.go:486
↓ 2 callersFunctionrequireJoinsStayAt
requireJoinsStayAt checks that the member does not join again for a while.
consumer_group_cooperative_test.go:471
↓ 2 callersMethodreserveLength
()
length_field.go:83
↓ 2 callersMethodresize
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 callersMethodresurrectDeadBrokers
()
client.go:776
↓ 2 callersMethodretryJoinSync
(ctx context.Context, topics []string, held *heldAssignment, retries int, refreshCoordinator bool)
consumer_group.go:308
↓ 2 callersMethodretryMessage
(msg *ProducerMessage, err error)
async_producer.go:1818
↓ 2 callersMethodretryMessages
(batch []*ProducerMessage, err error)
async_producer.go:1827
↓ 2 callersMethodrevoke
(topic string, partition int32)
functional_consumer_group_java_interop_test.go:78
↓ 2 callersMethodrun
()
async_producer.go:1122
↓ 2 callersFunctionrunConfiguredSaramaInteropMember
(t *testing.T, groupID, name, topic string, configure func(*Config), primary BalanceStrategy, extra ...Balance
functional_consumer_group_java_interop_test.go:365
↓ 2 callersFunctionrunConsumerLeaderRefreshErrorTestWithConfig
(t *testing.T, config *Config)
consumer_test.go:417
↓ 2 callersMethodsafelyApplyInterceptor
(interceptor ProducerInterceptor)
interceptors.go:25
↓ 2 callersMethodsend
b.lock must be held by caller a non-nil res results in a response promise being created
broker.go:1145
↓ 2 callersMethodsendAndReceiveSASLHandshake
(saslType SASLMechanism, version int16)
broker.go:1658
↓ 2 callersMethodsendInternal
b.lock must be held by caller
broker.go:1189
↓ 2 callersMethodsendWithPromise
b.lock must be held by caller
broker.go:1170
↓ 2 callersFunctionserveRawConn
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 callersFunctionsessionCauseToReason
(cause error)
consumer_group_session.go:487
↓ 2 callersFunctionsetupToxiProxies
setupToxiProxies will configure the toxiproxy proxies with routes for the kafka brokers if they don't already exist
functional_test.go:131
↓ 2 callersMethodsignal
(sig string)
functional_consumer_group_java_interop_test.go:283
↓ 2 callersFunctionsortPartitions
(currentAssignment map[string][]topicPartitionAssignment, partitionsWithADifferentPreviousAssignment map[topic
balance_strategy.go:720
↓ 2 callersFunctionsortPartitionsByPotentialConsumerAssignments
(partition2AllPotentialConsumers map[topicPartitionAssignment][]string)
balance_strategy.go:800
↓ 2 callersMethodspn
(broker *Broker)
gssapi_kerberos.go:204
↓ 2 callersMethodstartClaims
(claims map[string][]int32)
consumer_group_session.go:178
↓ 2 callersFunctionstartCooperativeGroup
(t *testing.T, coord *mockCooperativeCoordinator, config *Config, h ConsumerGroupHandler)
consumer_group_cooperative_test.go:409
↓ 2 callersFunctionstartJavaConsumerGroupMember
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 callersMethodstopConsuming
()
consumer.go:1417
↓ 2 callersMethodsubscriptionMetadata
subscriptionMetadata builds the ConsumerGroupMemberMetadata for a single strategy in a JoinGroup request. If the strategy implements SubscriptionUserD
consumer_group.go:624
↓ 2 callersFunctionsupportedProtocols
(strategy BalanceStrategy)
rebalance_protocol.go:43
↓ 2 callersFunctiontearDownDockerTestEnvironment
(ctx context.Context, env *testEnvironment)
functional_test.go:295
↓ 2 callersMethodthrottleTime
()
broker.go:2049
↓ 2 callersFunctiontopicWithEvenLeaders
(t *testing.T, adminClient ClusterAdmin, client Client, numPartitions int32)
functional_admin_test.go:20
↓ 2 callersMethodtransitionGeneration
transitionGeneration keeps commits out while the coordinator establishes the next generation and member id
offset_manager.go:281
↓ 2 callersMethodtriggerRebalance
(cause error)
consumer_group_cooperative.go:158
↓ 2 callersMethodupdateLeader
()
async_producer.go:951
↓ 2 callersMethodupdateRequestLatencyAndInFlightMetrics
(requestLatency time.Duration)
broker.go:1994
↓ 2 callersFunctionvalidServerNameTLS
(addr string, cfg *tls.Config)
broker.go:2165
↓ 2 callersFunctionvalidateGroupInstanceId
(id string)
config.go:960
↓ 2 callersFunctionverifyProducerConfig
(config *Config)
sync_producer.go:152
↓ 2 callersFunctionverifyValidityAndBalance
(t *testing.T, consumers map[string]ConsumerGroupMemberMetadata, plan BalanceStrategyPlan)
balance_strategy_test.go:2195
↓ 2 callersFunctionversion
()
version.go:14
↓ 2 callersMethodwait
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 callersMethodwaitFor
(cond func(map[string][]int32) bool, what string)
functional_consumer_group_java_interop_test.go:117
↓ 2 callersFunctionwaitForConsume
(t *testing.T, consumeDone <-chan error)
consumer_group_cooperative_test.go:445
↓ 2 callersMethodwaitIfThrottled
()
broker.go:2075
↓ 2 callersMethodwaitUntilJoined
()
functional_consumer_group_java_interop_test.go:135
↓ 2 callersMethodwaitUntilMuted
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 callersMethodwatchPartitionNumbers
watchPartitionNumbers replaces the leader-only watcher for each generation
consumer_group_session.go:138
↓ 2 callersFunctionwriteRawResponse
writeRawResponse writes a v0 response header declaring length, followed by body.
broker_test.go:450
↓ 2 callersFunctionzstdCompress
(params ZstdEncoderParams, dst, src []byte)
zstd.go:119
↓ 1 callersMethodAddBlock
(topic string, partition int32, block *OffsetFetchResponseBlock)
offset_fetch_response.go:68
↓ 1 callersMethodAddBlock
(topic string, partitionID int32, timestamp int64, maxOffsets int32)
offset_request.go:258
↓ 1 callersMethodAddControlRecord
(topic string, partition int32, offset int64, producerID int64, recordType ControlRecordType)
fetch_response.go:732
↓ 1 callersMethodAddControlRecordWithTimestamp
(topic string, partition int32, offset int64, producerID int64, recordType ControlRecordType, timestamp time.T
fetch_response.go:686
↓ 1 callersMethodAddError
(topic string, partition int32, kerror KError, message *string)
alter_partition_reassignments_response.go:46
↓ 1 callersMethodAddError
(topic string, partition int32, errorCode KError)
delete_offsets_response.go:20
↓ 1 callersMethodAddGroupAssignmentMember
( memberId string, memberAssignment *ConsumerGroupMemberAssignment, )
sync_group_request.go:199
↓ 1 callersMethodAddGroupBlock
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 callersMethodAddGroupPartition
AddGroupPartition adds a partition under group in a v8+ batch, creating the group entry if absent.
offset_fetch_request.go:368
↓ 1 callersMethodAddGroupProtocolMetadata
(name string, metadata *ConsumerGroupMemberMetadata)
join_group_request.go:278
↓ 1 callersMethodAddMessageToTxn
(msg *sarama.ConsumerMessage, groupId string, metadata *string)
mocks/sync_producer.go:297
↓ 1 callersMethodAddMessageToTxnWithGroupMetadata
(msg *ConsumerMessage, groupMetadata *ConsumerGroupMetadata, metadata *string)
async_producer.go:456
↓ 1 callersMethodAddOffsetsToTxn
(offsets map[string][]*sarama.PartitionOffsetMetadata, groupId string)
mocks/sync_producer.go:289
↓ 1 callersMethodAddPartition
(topic string, partitionID int32)
offset_fetch_request.go:10
↓ 1 callersMethodAddPartition
(topic string, partitionID int32)
delete_offsets_request.go:95
↓ 1 callersMethodAddRecordBatch
(topic string, partition int32, key, value Encoder, offset int64, producerID int64, isTransactional bool)
fetch_response.go:728
↓ 1 callersMethodAddRecordBatchWithTimestamp
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 callersMethodAddSet
(topic string, partition int32, set *MessageSet)
produce_request.go:312
↓ 1 callersMethodAlterConfigs
AlterConfigs sends a request to alter config and return a response or error
broker.go:947
↓ 1 callersMethodAssertNoInitialValues
()
functional_consumer_group_test.go:737
↓ 1 callersMethodAssignmentData
AssignmentData serializes the set of topics currently assigned to the specified member as part of the supplied balance plan
balance_strategy.go:340
↓ 1 callersMethodAsyncClose
()
offset_manager.go:740
↓ 1 callersMethodAsyncClose
()
async_producer.go:584
↓ 1 callersMethodAsyncClose
PartitionConsumer interface implementation AsyncClose implements the AsyncClose method from the sarama.PartitionConsumer interface.
mocks/consumer.go:273
↓ 1 callersMethodAsyncClose
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 callersMethodAuthorize
Authorize performs the kerberos auth handshake for authorization
gssapi_kerberos.go:238
↓ 1 callersMethodAuthorizeV2
AuthorizeV2 performs the SASL v2 GSSAPI authentication with the Kafka broker.
gssapi_kerberos.go:286
↓ 1 callersMethodBeginTxn
()
mocks/sync_producer.go:261
↓ 1 callersMethodClaims
()
consumer_group_session.go:227
↓ 1 callersMethodClose
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 callersMethodClose
()
client.go:307
↓ 1 callersMethodClose
()
functional_consumer_group_test.go:415
↓ 1 callersMethodClose
()
examples/http_server/http_server.go:92
↓ 1 callersMethodCommit
()
offset_manager.go:274
↓ 1 callersMethodCommit
Commit the offset to the backend Note: calling Commit performs a blocking synchronous operation.
consumer_group_session.go:42
↓ 1 callersMethodCommitTxn
()
mocks/sync_producer.go:269
↓ 1 callersMethodConfig
()
client.go:247
↓ 1 callersMethodCreateACLs
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 callersMethodCreateProxy
( name string, listenAddr string, targetAddr string, )
internal/toxiproxy/client.go:38
↓ 1 callersMethodDeleteACL
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 callersMethodDeleteAcls
DeleteAcls sends a delete acl request and returns a response or error
broker.go:858
↓ 1 callersMethodDescribeAcls
DescribeAcls sends a describe acl request and returns a response or error
broker.go:823
↓ 1 callersMethodDescribeConfigs
DescribeConfigs sends a request to describe config and returns a response or error
broker.go:935
↓ 1 callersMethodDescribeConfigs
(resources []*ConfigResource, options DescribeConfigsOptions)
admin.go:892
↓ 1 callersMethodErrorf
(string, ...any)
mockresponses.go:13
↓ 1 callersMethodExpectErrorsDrainedOnClose
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 callersMethodExpectInputWithCheckerFunctionAndSucceed
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 callersMethodFor
(reqBody versionedDecoder)
mockresponses.go:903
↓ 1 callersMethodGet
()
broker_test.go:115
← previousnext →801–900 of 3,900, ranked by callers