MCPcopy Create free account

hub / github.com/IBM/sarama / functions

Functions3,900 in github.com/IBM/sarama

↓ 3 callersMethodAddOffsetsToTxn
AddOffsetsToTxn add associated offsets to current transaction.
sync_producer.go:60
↓ 3 callersMethodAddRecord
(topic string, partition int32, key, value Encoder, offset int64)
fetch_response.go:724
↓ 3 callersMethodAddToxic
( name string, toxicType string, stream string, toxicity float32, attributes Attributes, )
internal/toxiproxy/proxy.go:21
↓ 3 callersMethodCName
()
gssapi_kerberos.go:58
↓ 3 callersMethodConsumerGroupDescribe
ConsumerGroupDescribe describes KIP-848 consumer groups coordinated by this broker.
broker.go:1040
↓ 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 callersMethodDescribeCluster
Get information about the nodes in the cluster
admin.go:165
↓ 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:382
↓ 3 callersMethodDomain
()
gssapi_kerberos.go:57
↓ 3 callersMethodExpectInputWithMessageCheckerFunctionAndSucceed
Setting expectations ExpectInputWithMessageCheckerFunctionAndSucceed sets an expectation on the mock producer that a message will be provided on the
mocks/async_producer.go:221
↓ 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:251
↓ 3 callersMethodFetch
Fetch returns a FetchResponse or error
broker.go:599
↓ 3 callersMethodGenerationID
()
consumer_group_session.go:229
↓ 3 callersMethodGetAvailableOffsets
GetAvailableOffsets return an offset response or error
broker.go:508
↓ 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:147
↓ 3 callersMethodLeastLoadedBroker
LeastLoadedBroker returns the broker with the least pending requests. Firstly, choose the broker from cached broker list. If the broker list is empty,
client.go:787
↓ 3 callersMethodLeaveGroup
LeaveGroup return a leave group response or error
broker.go:674
↓ 3 callersMethodListTopics
List the topics available in the cluster with the default options.
admin.go:27
↓ 3 callersMethodMemberID
MemberID returns the cluster member ID.
consumer_group_session.go:18
↓ 3 callersMethodMemberID
()
consumer_group_session.go:228
↓ 3 callersMethodMessageRequiresConsistency
MessageRequiresConsistency is similar to Partitioner.RequiresConsistency, but takes in the message being partitioned so that the partitioner can make
partitioner.go:38
↓ 3 callersFunctionNewConfig
(clientCert, clientKey string)
tools/tls/config.go:5
↓ 3 callersFunctionNewDescribeClusterRequest
(version KafkaVersion)
describe_cluster_request.go:18
↓ 3 callersFunctionNewExponentialBackoff
NewExponentialBackoff returns a function that implements an exponential backoff strategy with jitter. It follows KIP-580, implementing the formula: MI
utils.go:370
↓ 3 callersFunctionNewListTransactionsRequest
NewListTransactionsRequest returns a ListTransactionsRequest for the given Kafka version with DurationFilter defaulted to -1 (no filter). Prefer this
list_transactions_request.go:40
↓ 3 callersFunctionNewMockCreateAclsResponse
(t TestReporter)
mockresponses.go:1115
↓ 3 callersFunctionNewMockCreatePartitionsResponse
(t TestReporter)
mockresponses.go:790
↓ 3 callersFunctionNewMockCreateTopicsResponse
(t TestReporter)
mockresponses.go:735
↓ 3 callersFunctionNewMockDeleteRecordsResponse
(t TestReporter)
mockresponses.go:876
↓ 3 callersFunctionNewMockDeleteTopicsResponse
(t TestReporter)
mockresponses.go:765
↓ 3 callersFunctionNewMockHeartbeatResponse
(t TestReporter)
mockresponses.go:1467
↓ 3 callersFunctionNewMockListGroupsResponse
(t TestReporter)
mockresponses.go:78
↓ 3 callersMethodOnAssignment
(assignment *ConsumerGroupMemberAssignment, generationID int32)
balance_strategy.go:115
↓ 3 callersMethodPeek
Peek returns the head element. It panics if the queue is empty.
internal/queue/queue.go:46
↓ 3 callersMethodPrint
(v ...any)
sarama.go:130
↓ 3 callersMethodRemove
Remove pops and returns the head element. It panics if the queue is empty.
internal/queue/queue.go:54
↓ 3 callersMethodReplicas
Replicas returns the set of all replica IDs for the given partition.
client.go:64
↓ 3 callersMethodSetApiKeys
(apiKeys []ApiVersionsResponseKey)
mockresponses.go:1552
↓ 3 callersMethodSetLastOffsetDelta
(topic string, partition int32, offset int32)
fetch_response.go:737
↓ 3 callersMethodSetLastStableOffset
(topic string, partition int32, offset int64)
fetch_response.go:747
↓ 3 callersMethodStep
Step steps client through the SCRAM exchange. It is called repeatedly until it errors or `Done` returns true.
broker.go:128
↓ 3 callersMethodSubscriptionUserData
(topics []string)
balance_strategy.go:82
↓ 3 callersMethodTopic
Topic returns the consumed topic name.
consumer_group_session.go:535
↓ 3 callersMethodTopics
Topics returns the set of available topics as retrieved from cluster metadata.
client.go:45
↓ 3 callersMethodUpdateFeatures
Update the maximum version level of finalized features. This operation is supported by brokers with version 2.7.0.0 or higher.
admin.go:181
↓ 3 callersMethodWritablePartitions
WritablePartitions returns the sorted list of all writable partition IDs for the given topic, where "writable" means "having a valid leader accepting
client.go:53
↓ 3 callersMethodabandonBrokerConnection
(bp *brokerProducer)
async_producer.go:1865
↓ 3 callersMethodabortableErrorIfPossible
if kafka cluster is at least 2.5.0 mark txnmngr to bump epoch else mark it as fatal.
transaction_manager.go:674
↓ 3 callersMethodadd
(msg *ProducerMessage)
produce_set.go:45
↓ 3 callersFunctionallocateBody
(key, version int16)
request.go:125
↓ 3 callersFunctionassertNotDone
(t *testing.T, ch <-chan T, wait time.Duration)
async_producer_test.go:2034
↓ 3 callersFunctionbenchmarkProduceRequestEncodeMetrics
(b *testing.B, partitions int)
produce_request_test.go:162
↓ 3 callersFunctioncloseCooperativeGroup
(t *testing.T, group ConsumerGroup, consumeDone <-chan error)
consumer_group_cooperative_test.go:477
↓ 3 callersMethodcloseLocked
closeLocked closes the broker connection and resets state. NOTE: caller must hold b.lock.
broker.go:406
↓ 3 callersFunctioncloseProducerWithTimeout
(t *testing.T, p AsyncProducer, timeout time.Duration)
helpers_test.go:19
↓ 3 callersMethodcompleteTransaction
End current transaction.
transaction_manager.go:683
↓ 3 callersFunctioncompress
(cc CompressionCodec, level int, data []byte)
compress.go:112
↓ 3 callersMethodcomputeBackoff
Compute retry backoff considered current attempts.
transaction_manager.go:288
↓ 3 callersFunctioncomputeMetadataBackoff
(conf *Config, attemptsRemaining int)
client.go:1236
↓ 3 callersFunctionconsumerGroupDescribeTestResponse
(version int16)
consumer_group_describe_response_test.go:67
↓ 3 callersMethodcontrollerError
(code KError, msg *string)
admin.go:326
↓ 3 callersFunctioncooperativeBrokerHandlers
(t *testing.T, broker *MockBroker, coord *mockCooperativeCoordinator, partitions int32)
consumer_group_cooperative_test.go:377
↓ 3 callersMethodcovers
(topic string, partition int32)
offset_manager.go:297
↓ 3 callersMethoddecode
(pd packetDecoder, version int16)
describe_client_quotas_response.go:223
↓ 3 callersFunctiondecodeResponseHeaderV0
decodeResponseHeaderV0 decodes a non-flexible response header read outside responseReceiver and returns the length of the body that follows it.
broker.go:1482
↓ 3 callersFunctiondecodeSASLv0Length
decodeSASLv0Length decodes the 4-byte length prefix of a SASL v0 token, which is sent without a Kafka response header.
broker.go:1495
↓ 3 callersFunctiondecompress
(cc CompressionCodec, data []byte)
decompress.go:132
↓ 3 callersFunctiondependsOnSpecificNode
Returns a bool indicating whether the resource request needs to go to a specific broker
admin.go:849
↓ 3 callersMethoddispatcher
()
consumer.go:568
↓ 3 callersFunctionencodeKV
(key, value Encoder)
fetch_response.go:620
↓ 3 callersFunctionendOffsetForPartition
(t *testing.T, topic string, partition int32)
functional_java_interop_test.go:202
↓ 3 callersMethodensureRecords
(topic string, partition int32)
produce_request.go:290
↓ 3 callersMethoderrors
errors returns the per-topic errors in deterministic (sorted by topic) order.
metadata.go:47
↓ 3 callersMethodgetProducerID
()
transaction_manager.go:281
↓ 3 callersMethodgetReplicas
(topic string, partitionID int32, extractor func(metadata *PartitionMetadata) []int32)
client.go:431
↓ 3 callersFunctiongoroutineBlocked
goroutineBlocked reports whether a goroutine is parked in the given wait state (as runtime.Stack prints it, e.g. "chan send") inside function.
consumer_test.go:2826
↓ 3 callersFunctiongroupBrokerHandlers
groupBrokerHandlers returns the full handler map a single-broker consumer group needs to form and consume "my-topic" as "my-group": partitions [0,part
consumer_group_test.go:769
↓ 3 callersMethodgroupStrategies
groupStrategies gives the deprecated Strategy field precedence when set
config.go:626
↓ 3 callersMethodhandleResponse
(response *brokerProducerResponse)
async_producer.go:1377
↓ 3 callersFunctionhandleResponsePromise
(req protocolBody, res protocolBody, promise *responsePromise, metricRegistry metrics.Registry)
broker.go:1293
↓ 3 callersMethodhandleSuccess
(sent *produceSet, response *ProduceResponse)
async_producer.go:1402
↓ 3 callersMethodinitProducerId
()
transaction_manager.go:554
↓ 3 callersMethodinterruptThrottleWaits
interruptThrottleWaits interrupts active throttle waits for the current connection while preserving the deadline for a subsequent connection. It must
broker.go:2104
↓ 3 callersFunctionintersection
Produces the intersection of two slices From https://github.com/juliangruber/go-intersect
balance_strategy_test.go:2272
↓ 3 callersMethodisAnyMuted
isAnyMuted reports whether any partition in the set has an in-flight batch. Requires: m.mu held.
async_producer.go:153
↓ 3 callersFunctionisConnectionClosedError
(err error)
mockbroker.go:381
↓ 3 callersMethodisControl
()
records.go:146
↓ 3 callersFunctionisTimeoutError
(err error)
admin.go:290
↓ 3 callersMethodjoinCount
()
consumer_group_cooperative_test.go:262
↓ 3 callersFunctionmemberAssignmentsIncludeTopicPartition
(assignments []topicPartitionAssignment, topic topicPartitionAssignment)
balance_strategy.go:716
↓ 3 callersFunctionmockApiVersionsFor
mockApiVersionsFor advertises the given API keys plus the ones a client needs to connect and find a coordinator, each over a range that leaves the neg
admin_test.go:2608
↓ 3 callersFunctionnewCRC32Field
(polynomial crcPolynomial)
crc32_field.go:49
↓ 3 callersFunctionnewCapturingOffsetManager
newCapturingOffsetManager builds an offset manager whose commit requests are recorded in the returned capture.
offset_manager_test.go:1263
↓ 3 callersFunctionnewConsumer
(client Client)
consumer.go:133
↓ 3 callersFunctionnewDecompressedBatchTooLargeError
(cc CompressionCodec, limit int)
decompress.go:40
↓ 3 callersFunctionnewKafkaVersion
(major, minor, veryMinor, patch uint)
utils.go:123
↓ 3 callersFunctionnewMetricValidators
()
metrics_helpers_test.go:17
← previousnext →401–500 of 3,900, ranked by callers