MCPcopy Create free account

hub / github.com/IBM/sarama / functions

Functions3,668 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:1390
↓ 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:2289
↓ 8 callersMethodgetUVarint
()
packet_decoder.go:22
↓ 8 callersMethodkey
()
request.go:12
↓ 8 callersFunctionnullString
(s string)
request_test.go:688
↓ 8 callersMethodputRawBytes
(in []byte)
packet_encoder.go:29
↓ 8 callersMethodreturnError
(msg *ProducerMessage, err error)
async_producer.go:1701
↓ 8 callersFunctiontestRequestDecode
(t *testing.T, name string, rb protocolBody, packet []byte)
request_test.go:636
↓ 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 callersFunctionNewMockOffsetFetchResponse
(t TestReporter)
mockresponses.go:618
↓ 7 callersFunctionNewMockSaslAuthenticateResponse
(t TestReporter)
mockresponses.go:1139
↓ 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 callersMethodTxnStatus
TxnStatus return current producer transaction status.
sync_producer.go:40
↓ 7 callersMethodaddRequestInFlightMetrics
(i int64)
broker.go:1914
↓ 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
↓ 7 callersMethodrelease
()
consumer.go:446
↓ 7 callersFunctionrunTestFuncConsumerGroupMemberWithConfig
( t *testing.T, config *Config, groupID string, maxMessages int32, sink *testFuncConsumerGroupSink, topi
functional_consumer_group_test.go:428
↓ 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 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:844
↓ 6 callersFunctionNewMockListTransactionsResponse
(t TestReporter)
mockresponses.go:1677
↓ 6 callersFunctionNewMockSaslHandshakeResponse
(t TestReporter)
mockresponses.go:1179
↓ 6 callersMethodPlan
Plan accepts a map of `memberID -> metadata` and a map of `topic -> partitions` and returns a distribution plan.
balance_strategy.go:56
↓ 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:1159
↓ 6 callersMethodSetEnabledMechanisms
(enabledMechanisms []string)
mockresponses.go:1196
↓ 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 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 callersFunctionrestrictApiVersion
restrictApiVersion selects the appropriate API version for a given protocol body according to the client and broker version ranges. By default, it sel
api_versions.go:15
↓ 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:778
↓ 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:1883
↓ 6 callersMethodupdateOutgoingCommunicationMetrics
(bytes int)
broker.go:1921
↓ 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 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 callersMethodMarkMessage
MarkMessage marks a message as consumed.
consumer_group_session.go:49
↓ 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:135
↓ 5 callersFunctionNewMockDescribeProducersResponse
(t TestReporter)
mockresponses.go:1579
↓ 5 callersFunctionNewMockJoinGroupResponse
(t TestReporter)
mockresponses.go:1286
↓ 5 callersFunctionNewMockSyncGroupResponse
(t TestReporter)
mockresponses.go:1378
↓ 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:620
↓ 5 callersMethodSetMemberAssignment
(assignment *ConsumerGroupMemberAssignment)
mockresponses.go:1397
↓ 5 callersMethodWaitForHandlers
(expected int)
functional_consumer_group_test.go:493
↓ 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:1753
↓ 5 callersMethodgetTaggedFieldArray
(taggedFieldDecoders)
packet_decoder.go:29
↓ 5 callersMethodgetUuid
()
packet_decoder.go:35
↓ 5 callersMethodhandleError
(err error, topic string, partition int32)
consumer_group.go:821
↓ 5 callersMethodhandleThrottledResponse
(resp protocolBody)
broker.go:1961
↓ 5 callersMethodheaderVersion
()
request.go:15
↓ 5 callersFunctionhistogramValidator
(name string, extraValidator func(*testing.T, metrics.Histogram))
metrics_helpers_test.go:70
↓ 5 callersFunctionnewLegacyRecords
(msgSet *MessageSet)
records.go:20
↓ 5 callersMethodpartitions
()
sticky_assignor_user_data.go:9
↓ 5 callersMethodputInt32
(in int32)
real_encoder.go:35
↓ 5 callersMethodputUuid
(in Uuid)
packet_encoder.go:30
↓ 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:1089
↓ 5 callersMethodreleaseSubscription
(child *partitionConsumer)
consumer.go:1392
↓ 5 callersMethodtriggerRedispatch
triggerRedispatch queues a redispatch signal unless one is already pending. If the child is shutting down, the signal is ignored.
consumer.go:527
↓ 5 callersMethodunrefBrokerProducer
(broker *Broker, bp *brokerProducer)
async_producer.go:1770
↓ 5 callersMethodwrite
write ensures the conn Deadline has been setup before making a call to conn.Write
broker.go:1099
↓ 4 callersMethodAddBlock
AddBlock adds a block for topic/partition. On v8+ it appends under Groups[0], creating it if needed.
offset_fetch_response.go:434
↓ 4 callersMethodAddGroupProtocol
(name string, metadata []byte)
join_group_request.go:239
↓ 4 callersMethodAddProducer
(topic string, partition int32, producer ProducerState)
mockresponses.go:1587
← previousnext →201–300 of 3,668, ranked by callers