MCPcopy Create free account

hub / github.com/IBM/sarama / functions

Functions3,668 in github.com/IBM/sarama

↓ 4 callersMethodApiVersions
ApiVersions return api version response or error
broker.go:708
↓ 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:43
↓ 4 callersMethodByteSize
the metadata overhead of CRC, flags, etc.
async_producer.go:396
↓ 4 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:150
↓ 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:135
↓ 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 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
↓ 4 callersMethodDescribeConsumerGroups
Describe the given consumer groups.
admin.go:128
↓ 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:622
↓ 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:43
↓ 4 callersMethodLength
()
utils.go:68
↓ 4 callersMethodListConsumerGroups
List the consumer groups available in the cluster.
admin.go:125
↓ 4 callersMethodMarshalText
MarshalText returns the text form of the AclOperation (name without prefix)
acl_types.go:59
↓ 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 callersFunctionNewMockOffsetCommitResponse
(t TestReporter)
mockresponses.go:504
↓ 4 callersFunctionNewOffsetFetchRequest
( version KafkaVersion, group string, partitions map[string][]int32, )
offset_fetch_request.go:29
↓ 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:96
↓ 4 callersMethodRead
(b []byte)
utils.go:112
↓ 4 callersMethodSave
()
internal/toxiproxy/proxy.go:73
↓ 4 callersMethodSetGroupProtocol
(proto string)
mockresponses.go:1323
↓ 4 callersMethodSetHighWaterMark
(topic string, partition int32, offset int64)
mockresponses.go:332
↓ 4 callersMethodUnregisterAll
()
metrics.go:113
↓ 4 callersMethodWaitForClaims
(expected map[string]int)
functional_consumer_group_test.go:501
↓ 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 callersMethodaddRecord
(r *Record)
record_batch.go:230
↓ 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 callersFunctionexpectResultsWithTimeout
(t *testing.T, p AsyncProducer, successCount, errorCount int, timeout time.Duration)
async_producer_test.go:23
↓ 4 callersMethodfindAnyBroker
()
admin.go:486
↓ 4 callersMethodfindBroker
(id int32)
admin.go:476
↓ 4 callersMethodfindPOM
(topic string, partition int32)
offset_manager.go:569
↓ 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 callersFunctioninitOffsetManagerWithBackoffFunc
( t *testing.T, retention time.Duration, backoffFunc func(retries, maxRetries int) time.Duration, config *C
offset_manager_test.go:18
↓ 4 callersFunctionkafkaVersionAtLeast
(requiredVersion string)
functional_java_interop_test.go:266
↓ 4 callersFunctionmarkOffset
(t *testing.T, offsetMgr OffsetManager, topic string, partition int32, offset int64)
functional_consumer_group_test.go:307
↓ 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 callersFunctionmockMetadataFor
mockMetadataFor builds a MockMetadataResponse with controller and brokers populated. Callers chain .SetLeader as needed.
admin_test.go:2177
↓ 4 callersFunctionnewMetadataRefresh
(f func(topics []string) error)
metadata.go:221
↓ 4 callersFunctionnewMockBroker
newMockBroker spins up a MockBroker with auto-cleanup.
admin_test.go:2129
↓ 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:303
↓ 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:268
↓ 4 callersMethodregister
(validator *metricValidator)
metrics_helpers_test.go:21
↓ 4 callersMethodrequiredVersion
()
request.go:17
↓ 4 callersMethodretryBatch
(topic string, partition int32, pSet *partitionSet, retryErr error, alreadyMuted bool)
async_producer.go:1468
↓ 4 callersMethodreturnErrors
(batch []*ProducerMessage, err error)
async_producer.go:1722
↓ 4 callersMethodrollOver
()
async_producer.go:1345
↓ 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:414
↓ 4 callersFunctionselectRebalanceProtocol
(strategies []BalanceStrategy)
rebalance_protocol.go:50
↓ 4 callersMethodsetVersion
(int16)
request.go:14
↓ 4 callersFunctionshouldCloseBrokerConn
shouldCloseBrokerConn reports whether a transport error should trigger closing.
broker.go:1390
↓ 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:1457
↓ 4 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:1485
↓ 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:1225
↓ 4 callersMethodunrefBrokerConsumer
(brokerWorker *brokerConsumer)
consumer.go:272
↓ 4 callersMethodversion
()
metadata_request.go:162
↓ 4 callersFunctionversionRange
(lower KafkaVersion)
functional_consumer_test.go:501
↓ 4 callersMethodwaitForSpace
waitForSpace makes space in the accumulating batch by flushing. It loops until the message fits.
async_producer.go:1301
↓ 4 callersMethodwouldOverflow
(msg *ProducerMessage)
produce_set.go:316
↓ 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:311
↓ 3 callersMethodAddError
(topic string, partition int32, kerror KError)
offset_commit_response.go:15
↓ 3 callersMethodAddGroup
(group string)
describe_groups_request.go:85
↓ 3 callersMethodAddMessageToTxn
AddMessageToTxn add message offsets to current transaction.
sync_producer.go:63
↓ 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:68
↓ 3 callersMethodAddOffsetsToTxn
AddOffsetsToTxn add associated offsets to current transaction.
sync_producer.go:55
↓ 3 callersMethodAddRecord
(topic string, partition int32, key, value Encoder, offset int64)
fetch_response.go:724
↓ 3 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
↓ 3 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:523
↓ 3 callersMethodCName
()
gssapi_kerberos.go:58
↓ 3 callersMethodClosed
Closed returns true if the client has already had Close called on it
client.go:127
↓ 3 callersMethodController
Controller returns the cluster controller broker. It will return a locally cached value if it's available. You can call RefreshController to update th
client.go:32
↓ 3 callersMethodDeleteConsumerGroup
Delete a consumer group.
admin.go:162
↓ 3 callersMethodDescribeConfigs
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:82
↓ 3 callersMethodDial
(_, _ string)
broker_test.go:252
↓ 3 callersMethodDomain
()
gssapi_kerberos.go:57
↓ 3 callersMethodElectLeaders
ElectLeaders allows to trigger the election of preferred leaders for a set of partitions.
admin.go:122
↓ 3 callersMethodExpectInputWithMessageCheckerFunctionAndSucceed
Setting expectations ExpectInputWithMessageCheckerFunctionAndSucceed sets an expectation on the mock producer that a message will be provided on the
mocks/async_producer.go:220
↓ 3 callersMethodExpectMessagesDrainedOnClose
ExpectMessagesDrainedOnClose sets an expectation on the partition consumer that the messages channel will be fully drained when Close is called. If th
mocks/consumer.go:423
↓ 3 callersMethodExpectSendMessageAndFail
ExpectSendMessageAndFail sets an expectation on the mock producer that SendMessage will be called. The mock producer will handle the message as if it
mocks/sync_producer.go:221
↓ 3 callersMethodFetch
Fetch returns a FetchResponse or error
broker.go:584
↓ 3 callersMethodGenerationID
GenerationID returns the current generation ID.
consumer_group_session.go:19
↓ 3 callersMethodGetAvailableOffsets
GetAvailableOffsets return an offset response or error
broker.go:496
↓ 3 callersMethodInput
Input corresponds with the Input method of sarama's Producer implementation. You have to set expectations on the mock producer before writing messages
mocks/async_producer.go:146
← previousnext →301–400 of 3,668, ranked by callers