MCPcopy Create free account

hub / github.com/IBM/sarama / functions

Functions3,807 in github.com/IBM/sarama

↓ 8 callersMethodTransactionCoordinator
TransactionCoordinator returns the coordinating broker for a transaction id. It will return a locally cached value if it's available. You can call Ref
client.go:105
↓ 8 callersMethodWrite
(p []byte)
client_test.go:1387
↓ 8 callersMethodcurrentTxnStatus
Get current transaction status.
transaction_manager.go:204
↓ 8 callersFunctionencodeSubscriberPlanWithGeneration
(t *testing.T, assignments map[string][]int32, generation int32)
balance_strategy_test.go:2297
↓ 8 callersMethodgetUVarint
()
packet_decoder.go:22
↓ 8 callersFunctioninitOffsetManager
(t *testing.T, retention time.Duration)
offset_manager_test.go:62
↓ 8 callersMethodkey
()
request.go:12
↓ 8 callersMethodputRawBytes
(in []byte)
packet_encoder.go:29
↓ 8 callersMethodrelease
()
consumer.go:446
↓ 8 callersMethodreturnError
(msg *ProducerMessage, err error)
async_producer.go:1716
↓ 8 callersFunctionrunTestFuncConsumerGroupMemberWithConfig
( t *testing.T, config *Config, groupID string, maxMessages int32, sink *testFuncConsumerGroupSink, topi
functional_consumer_group_test.go:470
↓ 8 callersFunctiontestRequestDecode
(t *testing.T, name string, rb protocolBody, packet []byte)
request_test.go:640
↓ 7 callersMethodAbortTxn
AbortTxn abort current transaction.
sync_producer.go:52
↓ 7 callersMethodCoordinator
Coordinator returns the coordinating broker for a consumer group. It will return a locally cached value if it's available.
admin.go:197
↓ 7 callersMethodCreateTopic
Creates a new topic. This operation is supported by brokers with version 0.10.1.0 or higher. It may take several seconds after CreateTopic returns suc
admin.go:24
↓ 7 callersMethodGetOffset
GetOffset queries the cluster to get the most recent available offset at the given time (in milliseconds) on the topic/partition combination. Time sho
client.go:89
↓ 7 callersMethodIsTransactional
()
async_producer.go:447
↓ 7 callersFunctionNewBalanceStrategySticky
NewBalanceStrategySticky returns a sticky balance strategy, which assigns partitions to members with an attempt to preserve earlier assignments while
balance_strategy.go:167
↓ 7 callersFunctionNewMockSaslAuthenticateResponse
(t TestReporter)
mockresponses.go:1186
↓ 7 callersMethodPause
Pause suspends fetching from the requested partitions. Future calls to the broker will not return any records from these partitions until they have be
consumer.go:82
↓ 7 callersMethodPlan
Plan accepts a map of `memberID -> metadata` and a map of `topic -> partitions` and returns a distribution plan.
balance_strategy.go:56
↓ 7 callersMethodTxnStatus
TxnStatus return current producer transaction status.
sync_producer.go:40
↓ 7 callersMethodaddRequestInFlightMetrics
(i int64)
broker.go:1927
↓ 7 callersMethodbuildRequest
()
produce_set.go:180
↓ 7 callersFunctiongenerateRegexpChecker
(re string)
mocks/async_producer_test.go:15
↓ 7 callersMethodgetOrCreateBlock
(topic string, partition int32)
fetch_response.go:602
↓ 7 callersFunctiongetOrRegisterHistogram
(name string, r metrics.Registry)
metrics.go:20
↓ 7 callersFunctionnewDefaultRecords
(batch *RecordBatch)
records.go:24
↓ 7 callersFunctionnewTransactionManager
Build a new transaction manager sharing producer client.
transaction_manager.go:924
↓ 6 callersMethodAsyncClose
AsyncClose initiates a shutdown of the PartitionConsumer. This method will return immediately, after which you should continue to service the 'Message
consumer.go:388
↓ 6 callersMethodDeleteRecords
Delete records whose offset is smaller than the given offset of the corresponding partition. This operation is supported by brokers with version 0.11.
admin.go:58
↓ 6 callersMethodDeleteTopic
Delete a topic. It may take several seconds after the DeleteTopic to returns success and for all the brokers to become aware that the topics are gone.
admin.go:38
↓ 6 callersMethodDescribeTopics
Describe some topics in the cluster.
admin.go:30
↓ 6 callersMethodExpectSendMessageWithCheckerFunctionAndSucceed
ExpectSendMessageWithCheckerFunctionAndSucceed sets an expectation on the mock producer that SendMessage will be called. The mock producer will first
mocks/sync_producer.go:193
↓ 6 callersMethodMarkMessage
MarkMessage marks a message as consumed.
consumer_group_session.go:52
↓ 6 callersFunctionNewBalanceStrategyRoundRobin
NewBalanceStrategyRoundRobin returns a round-robin balance strategy, which assigns partitions to members in alternating order. For example, there are
balance_strategy.go:400
↓ 6 callersFunctionNewConsumerFromClient
NewConsumerFromClient creates a new consumer using the given client. It is still necessary to call Close() on the underlying client when shutting down
consumer.go:126
↓ 6 callersFunctionNewMockBrokerAddr
NewMockBrokerAddr behaves like newMockBroker but listens on the address you give it rather than just some ephemeral port.
mockbroker.go:412
↓ 6 callersFunctionNewMockDescribeConfigsResponse
(t TestReporter)
mockresponses.go:891
↓ 6 callersFunctionNewMockJoinGroupResponse
(t TestReporter)
mockresponses.go:1333
↓ 6 callersFunctionNewMockListTransactionsResponse
(t TestReporter)
mockresponses.go:1724
↓ 6 callersFunctionNewMockOffsetFetchResponse
(t TestReporter)
mockresponses.go:665
↓ 6 callersFunctionNewMockSaslHandshakeResponse
(t TestReporter)
mockresponses.go:1226
↓ 6 callersMethodRefreshMetadata
(topics ...string)
client.go:513
↓ 6 callersMethodResume
Resume resumes specified partitions which have been paused with Pause()/PauseAll(). New calls to the broker will return records from these partitions
consumer.go:86
↓ 6 callersMethodSendMessages
SendMessages produces a given set of messages, and returns only when all messages in the set have either succeeded or failed. Note that messages can s
sync_producer.go:32
↓ 6 callersMethodSetAuthBytes
(saslAuthBytes []byte)
mockresponses.go:1206
↓ 6 callersMethodSetEnabledMechanisms
(enabledMechanisms []string)
mockresponses.go:1243
↓ 6 callersMethodYieldMessage
Expectation API YieldMessage will yield a messages Messages channel of this partition consumer when it is consumed. By default, the mock consumer wi
mocks/consumer.go:386
↓ 6 callersFunctionawaitMessage
bound receives so a stall fails one test instead of timing out the suite
functional_producer_test.go:408
↓ 6 callersFunctiongetMetricNameForBroker
(name string, broker *Broker)
metrics.go:26
↓ 6 callersMethodgetUuid
()
packet_decoder.go:35
↓ 6 callersMethodhandleError
(err error, topic string, partition int32)
consumer_group.go:818
↓ 6 callersMethodheaderVersion
()
request.go:15
↓ 6 callersFunctionisRetriableGroupCoordinatorError
isRetriableGroupCoordinatorError returns `true` if the given error type unwraps to an `ErrNotCoordinatorForConsumer`, `ErrConsumerCoordinatorNotAvaila
admin.go:267
↓ 6 callersFunctionnewBrokerSubscription
(child *partitionConsumer)
consumer.go:439
↓ 6 callersFunctionnewCleanupRegistry
(parent metrics.Registry)
metrics.go:55
↓ 6 callersFunctionnewMockTxnManager
newMockTxnManager wires a transaction manager to broker using the standard metadata, find-coordinator and init-producer-id handshake. The caller owns
transaction_manager_test.go:446
↓ 6 callersMethodputUuid
(in Uuid)
packet_encoder.go:30
↓ 6 callersFunctionsafeAsyncClose
(b *Broker)
utils.go:53
↓ 6 callersMethodsetTypeFromFields
setTypeFromFields sets type of Records depending on which of MsgSet or RecordBatch is not nil. The first return value indicates whether both fields ar
records.go:31
↓ 6 callersFunctionsortMemberIDsByPartitionAssignments
(assignments map[string][]topicPartitionAssignment)
balance_strategy.go:784
↓ 6 callersMethodstopDispatcher
()
consumer.go:542
↓ 6 callersFunctiontestProducingMessages
(t *testing.T, config *Config, minVersion KafkaVersion)
functional_producer_test.go:984
↓ 6 callersMethodupdateIncomingCommunicationMetrics
(bytes int, requestLatency time.Duration)
broker.go:1896
↓ 6 callersMethodupdateOutgoingCommunicationMetrics
(bytes int)
broker.go:1934
↓ 5 callersMethodAlterPartitionReassignments
Alter the replica assignment for partitions. This operation is supported by brokers with version 2.4.0.0 or higher.
admin.go:50
↓ 5 callersMethodBeginTxn
BeginTxn mark current transaction as ready.
async_producer.go:75
↓ 5 callersMethodCommitTxn
CommitTxn commit current transaction.
async_producer.go:78
↓ 5 callersMethodCreatePartitions
Increase the number of partitions of the topics according to the corresponding values. If partitions are increased for a topic that has a key, the pa
admin.go:46
↓ 5 callersMethodDescribeConsumerGroups
Describe the given consumer groups.
admin.go:128
↓ 5 callersMethodExpectSendMessageAndSucceed
ExpectSendMessageAndSucceed sets an expectation on the mock producer that SendMessage will be called. The mock producer will handle the message as if
mocks/sync_producer.go:212
↓ 5 callersMethodListConsumerGroupOffsets
List the consumer group offsets available in the cluster.
admin.go:131
↓ 5 callersMethodListPartitionReassignments
Provides info on ongoing partitions replica reassignments. This operation is supported by brokers with version 2.4.0.0 or higher.
admin.go:54
↓ 5 callersFunctionNewBalanceStrategyCooperativeSticky
NewBalanceStrategyCooperativeSticky returns a cooperative sticky balance strategy Existing groups should first deploy it alongside their current eage
balance_strategy_cooperative_sticky.go:18
↓ 5 callersFunctionNewConsumerGroupFromClient
NewConsumerGroupFromClient creates a new consumer group using the given client. It is still necessary to call Close() on the underlying client when sh
consumer_group.go:146
↓ 5 callersFunctionNewMockDescribeProducersResponse
(t TestReporter)
mockresponses.go:1626
↓ 5 callersFunctionNewMockOffsetCommitResponse
(t TestReporter)
mockresponses.go:551
↓ 5 callersFunctionNewMockSyncGroupResponse
(t TestReporter)
mockresponses.go:1425
↓ 5 callersMethodRefreshTransactionCoordinator
RefreshTransactionCoordinator retrieves the coordinator for a transaction id and stores it in local cache. This function only works on Kafka 0.11.0.0
client.go:109
↓ 5 callersMethodResetOffset
ResetOffset resets to the provided offset, alongside a metadata string that represents the state of the partition consumer at that point in time. Rese
offset_manager.go:634
↓ 5 callersMethodSetGroupProtocol
(proto string)
mockresponses.go:1370
↓ 5 callersMethodWaitForHandlers
(expected int)
functional_consumer_group_test.go:535
↓ 5 callersFunctionbenchmarkProducer
(b *testing.B, conf *Config, topic string, value Encoder)
functional_producer_test.go:1332
↓ 5 callersFunctioncreateClient
(config *GSSAPIConfig, cfg *krb5config.Config)
kerberos_client.go:34
↓ 5 callersMethodeachPartition
(cb func(topic string, partition int32, pSet *partitionSet))
produce_set.go:283
↓ 5 callersMethodgetBrokerProducer
(broker *Broker)
async_producer.go:1768
↓ 5 callersMethodgetTaggedFieldArray
(taggedFieldDecoders)
packet_decoder.go:29
↓ 5 callersMethodhandleThrottledResponse
(resp protocolBody)
broker.go:1974
↓ 5 callersFunctionhistogramValidator
(name string, extraValidator func(*testing.T, metrics.Histogram))
metrics_helpers_test.go:70
↓ 5 callersFunctioninitOffsetManagerWithBackoffFunc
( t *testing.T, retention time.Duration, backoffFunc func(retries, maxRetries int) time.Duration, config *C
offset_manager_test.go:18
↓ 5 callersMethodjoinSync
joinSync separates group negotiation from session lifetime so a session can survive a rejoin
consumer_group.go:338
↓ 5 callersFunctionkafkaVersionAtLeast
(requiredVersion string)
functional_java_interop_test.go:268
↓ 5 callersFunctionmockMetadataFor
mockMetadataFor builds a MockMetadataResponse with controller and brokers populated. Callers chain .SetLeader as needed.
admin_test.go:2227
↓ 5 callersFunctionnewLegacyRecords
(msgSet *MessageSet)
records.go:20
↓ 5 callersMethodpartitions
()
sticky_assignor_user_data.go:9
↓ 5 callersMethodputInt32
(in int32)
real_encoder.go:35
↓ 5 callersMethodqueueSubscription
(subscription *brokerSubscription)
consumer.go:1399
↓ 5 callersMethodreadFull
readFull ensures the conn ReadDeadline has been setup before making a call to io.ReadFull
broker.go:1100
↓ 5 callersMethodreleaseSubscription
(child *partitionConsumer)
consumer.go:1392
← previousnext →201–300 of 3,807, ranked by callers