MCPcopy Create free account

hub / github.com/IBM/sarama / functions

Functions3,900 in github.com/IBM/sarama

↓ 5 callersFunctioncreateClient
(config *GSSAPIConfig, cfg *krb5config.Config)
kerberos_client.go:34
↓ 5 callersMethodfindPOM
(topic string, partition int32)
offset_manager.go:579
↓ 5 callersMethodgetBrokerProducer
(broker *Broker)
async_producer.go:1833
↓ 5 callersMethodgetTaggedFieldArray
(taggedFieldDecoders)
packet_decoder.go:29
↓ 5 callersMethodhandleThrottledResponse
(resp protocolBody)
broker.go:2052
↓ 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:21
↓ 5 callersFunctionisRetriableKError
isRetriableKError reports whether err maps to a RetriableException in the Java client, which resends a request that fails with one.
errors.go:480
↓ 5 callersMethodjoinSync
joinSync separates group negotiation from session lifetime so a session can survive a rejoin
consumer_group.go:346
↓ 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:1430
↓ 5 callersMethodreadFull
readFull ensures the conn ReadDeadline has been setup before making a call to io.ReadFull
broker.go:1115
↓ 5 callersMethodreleaseSubscription
(child *partitionConsumer)
consumer.go:1423
↓ 5 callersMethodrequiredVersion
()
request.go:17
↓ 5 callersFunctionshouldCloseBrokerConn
shouldCloseBrokerConn reports whether a transport error should trigger closing.
broker.go:1444
↓ 5 callersMethodtriggerRedispatch
triggerRedispatch queues a redispatch signal unless one is already pending. If the child is shutting down, the signal is ignored.
consumer.go:535
↓ 5 callersMethodunrefBrokerProducer
(broker *Broker, bp *brokerProducer)
async_producer.go:1850
↓ 5 callersMethodwrite
write ensures the conn Deadline has been setup before making a call to conn.Write
broker.go:1125
↓ 4 callersMethodAddError
(topic string, partition int32, kerror KError)
offset_commit_response.go:15
↓ 4 callersMethodAddGroupProtocol
(name string, metadata []byte)
join_group_request.go:271
↓ 4 callersMethodAddProducer
(topic string, partition int32, producer ProducerState)
mockresponses.go:1642
↓ 4 callersMethodAlterConfig
Update the configuration for the specified resources with the default options. This operation is supported by brokers with version 0.11.0.0 or higher.
admin.go:89
↓ 4 callersMethodApiVersions
ApiVersions return api version response or error
broker.go:723
↓ 4 callersMethodAssignmentData
AssignmentData returns the serialized assignment data for the specified memberID
balance_strategy.go:60
↓ 4 callersMethodAsyncClose
AsyncClose triggers a shutdown of the producer. The shutdown has completed when both the Errors and Successes channels have been closed. When calling
async_producer.go:44
↓ 4 callersMethodAsyncProduce
AsyncProduce sends a produce request and eventually call the provided callback with a produce response or an error. Waiting for the response is gener
broker.go:538
↓ 4 callersMethodBroker
Broker returns the active Broker if available for the broker ID.
client.go:42
↓ 4 callersMethodByteSize
the metadata overhead of CRC, flags, etc.
async_producer.go:397
↓ 4 callersMethodClose
Close corresponds with the Close method of sarama's Producer implementation. By closing a mock producer, you also tell it that no more input will be p
mocks/async_producer.go:136
↓ 4 callersMethodController
Controller returns the cluster controller broker. It will return a locally cached value if it's available.
admin.go:193
↓ 4 callersMethodCreateACL
Creates an access control list (ACL) which is bound to a specific resource. This operation is not transactional so it may succeed or fail. If you atte
admin.go:103
↓ 4 callersMethodDescribeLogDirs
Get information about all log directories on the given set of brokers
admin.go:168
↓ 4 callersMethodFetchOffset
FetchOffset returns an offset fetch response or error
broker.go:637
↓ 4 callersMethodGenerationID
GenerationID returns the current generation ID. The generation changes across cooperative rebalances.
consumer_group_session.go:22
↓ 4 callersMethodGetBlock
GetBlock returns the block for topic/partition. On v8+ it looks up Groups[0].
offset_fetch_response.go:402
↓ 4 callersMethodHandler
()
examples/http_server/http_server.go:104
↓ 4 callersMethodIncrementalAlterConfig
IncrementalAlterConfig Incrementally Update the configuration for the specified resources with the default options. This operation is supported by bro
admin.go:95
↓ 4 callersMethodIsTransactional
IsTransactional return true when current producer is transactional.
sync_producer.go:48
↓ 4 callersMethodLeaderAndEpoch
LeaderAndEpoch returns the leader and its epoch for the current topic/partition, as determined by querying the cluster metadata.
client.go:61
↓ 4 callersMethodLength
()
utils.go:68
↓ 4 callersFunctionNewConsumerGroupDescribeRequest
(version KafkaVersion)
consumer_group_describe_request.go:10
↓ 4 callersFunctionNewConsumerGroupMetadata
NewConsumerGroupMetadata returns metadata carrying only the group ID, with GenerationID set to GroupGenerationUndefined so the broker performs no memb
consumer_group_metadata.go:22
↓ 4 callersFunctionNewHashPartitioner
NewHashPartitioner returns a Partitioner which behaves as follows. If the message's key is nil then a random partition is chosen. Otherwise the FNV-1a
partitioner.go:175
↓ 4 callersFunctionNewMockLeaveGroupResponse
(t TestReporter)
mockresponses.go:1408
↓ 4 callersFunctionNewOffsetFetchRequest
( version KafkaVersion, group string, partitions map[string][]int32, )
offset_fetch_request.go:36
↓ 4 callersFunctionNewSyncProducerFromClient
NewSyncProducerFromClient creates a new SyncProducer using the given client. It is still necessary to call Close() on the underlying client when shutt
sync_producer.go:130
↓ 4 callersMethodRead
(b []byte)
utils.go:112
↓ 4 callersMethodSave
()
internal/toxiproxy/proxy.go:73
↓ 4 callersMethodSendMessage
Implement SyncProducer interface SendMessage corresponds with the SendMessage method of sarama's SyncProducer implementation. You have to set expect
mocks/sync_producer.go:65
↓ 4 callersMethodSetHighWaterMark
(topic string, partition int32, offset int64)
mockresponses.go:387
↓ 4 callersMethodSetMemberAssignment
(assignment *ConsumerGroupMemberAssignment)
mockresponses.go:1452
↓ 4 callersMethodSetMemberId
(id string)
mockresponses.go:1388
↓ 4 callersMethodUnregisterAll
()
metrics.go:113
↓ 4 callersMethodWaitForClaims
(expected map[string]int)
functional_consumer_group_test.go:543
↓ 4 callersMethodYieldError
YieldError will yield an error on the Errors channel of this partition consumer when it is consumed. By default, the mock consumer will not verify whe
mocks/consumer.go:410
↓ 4 callersFunctionassertPartitioningConsistent
(t *testing.T, partitioner Partitioner, message *ProducerMessage, numPartitions int32)
partitioner_test.go:14
↓ 4 callersFunctionconsumeMsgs
(t *testing.T, clientVersions []KafkaVersion, producedMessages []*ProducerMessage)
functional_consumer_test.go:607
↓ 4 callersFunctiondefaultConfig
(clientID string)
functional_consumer_group_test.go:443
↓ 4 callersMethodderegisterBroker
deregisterBroker removes a broker from the broker list, and if it's not in the broker list, removes it from seedBrokers. Deregister a failed broker be
client.go:759
↓ 4 callersFunctionexpectResultsWithTimeout
(t *testing.T, p AsyncProducer, successCount, errorCount int, timeout time.Duration)
async_producer_test.go:24
↓ 4 callersMethodfindAnyBroker
()
admin.go:488
↓ 4 callersMethodgetArrayLength
()
real_decoder.go:113
↓ 4 callersFunctiongetMetricNameForTopic
(name string, topic string)
metrics.go:32
↓ 4 callersMethodgetRawBytes
(length int)
real_decoder.go:336
↓ 4 callersMethodgetRawBytes
(length int)
packet_decoder.go:34
↓ 4 callersFunctionmarkOffset
(t *testing.T, offsetMgr OffsetManager, topic string, partition int32, offset int64)
functional_consumer_group_test.go:348
↓ 4 callersFunctionmessageValueChecker
messageValueChecker wraps a ValueChecker into a MessageChecker. Failure to encode the message value will return an error and not call the wrapped Valu
mocks/mocks.go:41
↓ 4 callersMethodmetricRegistry
To record metrics when provided
packet_encoder.go:47
↓ 4 callersFunctionnewCooperativeConfig
(t *testing.T)
consumer_group_cooperative_test.go:397
↓ 4 callersFunctionnewMetadataRefresh
(f func(topics []string) error)
metadata.go:223
↓ 4 callersFunctionnewMockBroker
newMockBroker spins up a MockBroker with auto-cleanup.
admin_test.go:2559
↓ 4 callersFunctionnewTrackingHandler
()
consumer_group_cooperative_test.go:287
↓ 4 callersFunctionprintErrorAndExit
(code int, format string, values ...any)
tools/kafka-producer-performance/main.go:461
↓ 4 callersFunctionprintUsageErrorAndExit
(message string)
tools/kafka-producer-performance/main.go:453
↓ 4 callersFunctionproduceMsgs
(t *testing.T, clientVersions []KafkaVersion, codecs []CompressionCodec, flush int, countPerVerCodec int, idem
functional_consumer_test.go:529
↓ 4 callersMethodpublishOffsetsToTxn
send txnmgnr save offsets to transaction coordinator.
transaction_manager.go:342
↓ 4 callersMethodputArrayLength
(in int)
prep_encoder.go:54
↓ 4 callersMethodputArrayLength
(in int)
real_encoder.go:58
↓ 4 callersMethodrefreshOrQueue
refreshOrQueue returns a channel the refresh needs to wait on, and a boolean that indicates whether waiting on the channel will return the result of t
metadata.go:273
↓ 4 callersMethodregister
(validator *metricValidator)
metrics_helpers_test.go:21
↓ 4 callersFunctionresetProxies
(t testing.TB)
functional_test.go:475
↓ 4 callersMethodretryBatch
(topic string, partition int32, pSet *partitionSet, retryErr error, alreadyMuted bool)
async_producer.go:1526
↓ 4 callersMethodrun
Indicates that all required data is now available to calculate and write the field. SaveOffset is guaranteed to have been called first. The implementa
packet_encoder.go:64
↓ 4 callersFunctionrunTestFuncConsumerGroupMember
( t *testing.T, groupID string, clientID string, maxMessages int32, sink *testFuncConsumerGroupSink, top
functional_consumer_group_test.go:456
↓ 4 callersFunctionselectRebalanceProtocol
(strategies []BalanceStrategy)
rebalance_protocol.go:50
↓ 4 callersMethodsetVersion
(int16)
request.go:14
↓ 4 callersFunctionsingleBrokerAdmin
singleBrokerAdmin wires a single mock broker that names itself controller, installs the given per-request handlers, and returns a ready admin client.
admin_test.go:1662
↓ 4 callersFunctionskipIfExistingEnvironment
(t *testing.T)
functional_test.go:122
↓ 4 callersMethodsnapshot
()
consumer_group_cooperative_test.go:320
↓ 4 callersMethodtryBuildFlushingBatch
tryBuildFlushingBatch tries to promote the accumulating batch (or whichever of its partitions aren't muted) into the flushing batch. If nothing could
async_producer.go:1229
↓ 4 callersMethodunrefBrokerConsumer
(brokerWorker *brokerConsumer)
consumer.go:272
↓ 4 callersFunctionversionRange
(lower KafkaVersion)
functional_consumer_test.go:501
↓ 4 callersMethodwouldOverflow
(msg *ProducerMessage)
produce_set.go:325
↓ 3 callersMethodAdd
Add assigns a topic with a number partitions to a member.
balance_strategy.go:36
↓ 3 callersMethodAddBlockWithLeaderEpoch
(topic string, partitionID int32, offset int64, leaderEpoch int32, timestamp int64, metadata string)
offset_commit_request.go:313
↓ 3 callersMethodAddGroup
(group string)
describe_groups_request.go:85
↓ 3 callersMethodAddMessageToTxn
AddMessageToTxn add message offsets to current transaction.
sync_producer.go:68
↓ 3 callersMethodAddMessageToTxnWithGroupMetadata
AddMessageToTxnWithGroupMetadata adds the message offset to the current transaction, carrying the consumer group member metadata so the broker can fen
sync_producer.go:73
← previousnext →301–400 of 3,900, ranked by callers