MCPcopy Create free account

hub / github.com/IBM/sarama / functions

Functions3,900 in github.com/IBM/sarama

↓ 8 callersMethodAbortTxn
AbortTxn abort current transaction.
sync_producer.go:57
↓ 8 callersMethodAsyncClose
AsyncClose initiates a shutdown of the PartitionConsumer. This method will return immediately, after which you should continue to service the 'Message
consumer.go:392
↓ 8 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
↓ 8 callersMethodDescribeProducers
DescribeProducers lists the active producers for the given topic partitions, querying each partition's leader. Requires Kafka 2.8.0.0 or higher.
admin_transactions.go:21
↓ 8 callersFunctionNewMockDescribeTransactionsResponse
(t TestReporter)
mockresponses.go:1686
↓ 8 callersFunctionNewRandomPartitioner
NewRandomPartitioner returns a Partitioner which chooses a random partition each time.
partitioner.go:99
↓ 8 callersMethodPort
Port returns the TCP port number the broker is listening for requests on.
mockbroker.go:137
↓ 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 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:65
↓ 8 callersMethodputRawBytes
(in []byte)
packet_encoder.go:29
↓ 8 callersMethodrelease
()
consumer.go:450
↓ 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:635
↓ 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 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
↓ 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:448
↓ 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 callersFunctionNewMockBrokerAddr
NewMockBrokerAddr behaves like newMockBroker but listens on the address you give it rather than just some ephemeral port.
mockbroker.go:412
↓ 7 callersFunctionNewMockOffsetFetchResponse
(t TestReporter)
mockresponses.go:673
↓ 7 callersFunctionNewMockSaslAuthenticateResponse
(t TestReporter)
mockresponses.go:1194
↓ 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 callersMethodaddRequestInFlightMetrics
(i int64)
broker.go:2005
↓ 7 callersMethodbuildRequest
()
produce_set.go:186
↓ 7 callersMethodfindBroker
findBroker returns the registered broker with the given id, opened by the client under its lock. Opening a *Broker after the client has dropped it (a
admin.go:480
↓ 7 callersFunctiongenerateRegexpChecker
(re string)
mocks/async_producer_test.go:16
↓ 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:1032
↓ 6 callersMethodClosed
Closed returns true if the client has already had Close called on it
client.go:127
↓ 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 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:223
↓ 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 callersFunctionNewMockDescribeConfigsResponse
(t TestReporter)
mockresponses.go:899
↓ 6 callersFunctionNewMockJoinGroupResponse
(t TestReporter)
mockresponses.go:1341
↓ 6 callersFunctionNewMockListTransactionsResponse
(t TestReporter)
mockresponses.go:1732
↓ 6 callersFunctionNewMockSaslHandshakeResponse
(t TestReporter)
mockresponses.go:1234
↓ 6 callersMethodRefreshMetadata
(topics ...string)
client.go:508
↓ 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:37
↓ 6 callersMethodSetAuthBytes
(saslAuthBytes []byte)
mockresponses.go:1214
↓ 6 callersMethodSetEnabledMechanisms
(enabledMechanisms []string)
mockresponses.go:1251
↓ 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 callersFunctiondecodeRequest
(r io.Reader)
request.go:93
↓ 6 callersMethodeachPartition
(cb func(topic string, partition int32, pSet *partitionSet))
produce_set.go:292
↓ 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:847
↓ 6 callersMethodheaderVersion
()
request.go:15
↓ 6 callersFunctioninitHandledOffsetManager
(t *testing.T, config *Config, commit MockResponse)
offset_manager_test.go:1229
↓ 6 callersFunctionisRetriableGroupCoordinatorError
isRetriableGroupCoordinatorError returns `true` if the given error type unwraps to an `ErrNotCoordinatorForConsumer`, `ErrConsumerCoordinatorNotAvaila
admin.go:269
↓ 6 callersFunctionkafkaVersionAtLeast
(requiredVersion string)
functional_java_interop_test.go:268
↓ 6 callersFunctionmockMetadataFor
mockMetadataFor builds a MockMetadataResponse with controller and brokers populated. Callers chain .SetLeader as needed.
admin_test.go:2622
↓ 6 callersFunctionnewBrokerSubscription
(child *partitionConsumer)
consumer.go:443
↓ 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:479
↓ 6 callersMethodputUuid
(in Uuid)
packet_encoder.go:30
↓ 6 callersMethodrequests
()
offset_manager_test.go:1135
↓ 6 callersMethodreturnError
(msg *ProducerMessage, err error)
async_producer.go:1776
↓ 6 callersMethodreturnErrors
returnErrors fails a batch of messages. The transaction state and the epoch are updated once for the whole batch.
async_producer.go:1782
↓ 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 callersFunctionstaleControllerAdmin
staleControllerAdmin wires two mock brokers into a controller-failover scenario and returns a ready admin client. Broker 1 answers reqType with errRes
admin_test.go:1690
↓ 6 callersMethodstopDispatcher
()
consumer.go:550
↓ 6 callersFunctiontestProducingMessages
(t *testing.T, config *Config, minVersion KafkaVersion)
functional_producer_test.go:984
↓ 6 callersMethodupdateIncomingCommunicationMetrics
(bytes int, requestLatency time.Duration)
broker.go:1974
↓ 6 callersMethodupdateOutgoingCommunicationMetrics
(bytes int)
broker.go:2012
↓ 5 callersMethodAddBlock
AddBlock adds a block for topic/partition. On v8+ it appends under Groups[0], creating it if needed.
offset_fetch_response.go:434
↓ 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:76
↓ 5 callersMethodClose
Close corresponds with the Close method of sarama's SyncProducer implementation. By closing a mock syncproducer, you also tell it that no more SendMes
mocks/sync_producer.go:180
↓ 5 callersMethodCommitTxn
CommitTxn commit current transaction.
async_producer.go:79
↓ 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 callersMethodDescribeConfig
Get the configuration for the specified resources. The returned configuration includes default values and the Default is true can be used to distingui
admin.go:71
↓ 5 callersMethodDescribeConsumerGroups
Describe the given consumer groups.
admin.go:128
↓ 5 callersMethodElectLeaders
ElectLeaders allows to trigger the election of preferred leaders for a set of partitions.
admin.go:122
↓ 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:242
↓ 5 callersMethodListConsumerGroupOffsets
List the consumer group offsets available in the cluster.
admin.go:131
↓ 5 callersMethodListConsumerGroups
List the consumer groups available in the cluster.
admin.go:125
↓ 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 callersMethodMarshalText
MarshalText returns the text form of the AclOperation (name without prefix)
acl_types.go:65
↓ 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:1634
↓ 5 callersFunctionNewMockSyncGroupResponse
(t TestReporter)
mockresponses.go:1433
↓ 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:630
↓ 5 callersMethodSetGroupProtocol
(proto string)
mockresponses.go:1378
↓ 5 callersMethodWaitForHandlers
(expected int)
functional_consumer_group_test.go:535
↓ 5 callersMethodaddRecord
(r *Record)
record_batch.go:271
↓ 5 callersFunctionbenchmarkProducer
(b *testing.B, conf *Config, topic string, value Encoder)
functional_producer_test.go:1332
← previousnext →201–300 of 3,900, ranked by callers