Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/sarama
/ functions
Functions
3,900 in github.com/IBM/sarama
⨍
Functions
3,900
◇
Types & classes
544
↓ 3 callers
Method
AddOffsetsToTxn
AddOffsetsToTxn add associated offsets to current transaction.
sync_producer.go:60
↓ 3 callers
Method
AddRecord
(topic string, partition int32, key, value Encoder, offset int64)
fetch_response.go:724
↓ 3 callers
Method
AddToxic
( name string, toxicType string, stream string, toxicity float32, attributes Attributes, )
internal/toxiproxy/proxy.go:21
↓ 3 callers
Method
CName
()
gssapi_kerberos.go:58
↓ 3 callers
Method
ConsumerGroupDescribe
ConsumerGroupDescribe describes KIP-848 consumer groups coordinated by this broker.
broker.go:1040
↓ 3 callers
Method
Controller
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 callers
Method
DeleteConsumerGroup
Delete a consumer group.
admin.go:162
↓ 3 callers
Method
DescribeCluster
Get information about the nodes in the cluster
admin.go:165
↓ 3 callers
Method
DescribeConfigs
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 callers
Method
Dial
(_, _ string)
broker_test.go:382
↓ 3 callers
Method
Domain
()
gssapi_kerberos.go:57
↓ 3 callers
Method
ExpectInputWithMessageCheckerFunctionAndSucceed
Setting expectations ExpectInputWithMessageCheckerFunctionAndSucceed sets an expectation on the mock producer that a message will be provided on the
mocks/async_producer.go:221
↓ 3 callers
Method
ExpectMessagesDrainedOnClose
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 callers
Method
ExpectSendMessageAndFail
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 callers
Method
Fetch
Fetch returns a FetchResponse or error
broker.go:599
↓ 3 callers
Method
GenerationID
()
consumer_group_session.go:229
↓ 3 callers
Method
GetAvailableOffsets
GetAvailableOffsets return an offset response or error
broker.go:508
↓ 3 callers
Method
Input
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 callers
Method
LeastLoadedBroker
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 callers
Method
LeaveGroup
LeaveGroup return a leave group response or error
broker.go:674
↓ 3 callers
Method
ListTopics
List the topics available in the cluster with the default options.
admin.go:27
↓ 3 callers
Method
MemberID
MemberID returns the cluster member ID.
consumer_group_session.go:18
↓ 3 callers
Method
MemberID
()
consumer_group_session.go:228
↓ 3 callers
Method
MessageRequiresConsistency
MessageRequiresConsistency is similar to Partitioner.RequiresConsistency, but takes in the message being partitioned so that the partitioner can make
partitioner.go:38
↓ 3 callers
Function
NewConfig
(clientCert, clientKey string)
tools/tls/config.go:5
↓ 3 callers
Function
NewDescribeClusterRequest
(version KafkaVersion)
describe_cluster_request.go:18
↓ 3 callers
Function
NewExponentialBackoff
NewExponentialBackoff returns a function that implements an exponential backoff strategy with jitter. It follows KIP-580, implementing the formula: MI
utils.go:370
↓ 3 callers
Function
NewListTransactionsRequest
NewListTransactionsRequest returns a ListTransactionsRequest for the given Kafka version with DurationFilter defaulted to -1 (no filter). Prefer this
list_transactions_request.go:40
↓ 3 callers
Function
NewMockCreateAclsResponse
(t TestReporter)
mockresponses.go:1115
↓ 3 callers
Function
NewMockCreatePartitionsResponse
(t TestReporter)
mockresponses.go:790
↓ 3 callers
Function
NewMockCreateTopicsResponse
(t TestReporter)
mockresponses.go:735
↓ 3 callers
Function
NewMockDeleteRecordsResponse
(t TestReporter)
mockresponses.go:876
↓ 3 callers
Function
NewMockDeleteTopicsResponse
(t TestReporter)
mockresponses.go:765
↓ 3 callers
Function
NewMockHeartbeatResponse
(t TestReporter)
mockresponses.go:1467
↓ 3 callers
Function
NewMockListGroupsResponse
(t TestReporter)
mockresponses.go:78
↓ 3 callers
Method
OnAssignment
(assignment *ConsumerGroupMemberAssignment, generationID int32)
balance_strategy.go:115
↓ 3 callers
Method
Peek
Peek returns the head element. It panics if the queue is empty.
internal/queue/queue.go:46
↓ 3 callers
Method
Print
(v ...any)
sarama.go:130
↓ 3 callers
Method
Remove
Remove pops and returns the head element. It panics if the queue is empty.
internal/queue/queue.go:54
↓ 3 callers
Method
Replicas
Replicas returns the set of all replica IDs for the given partition.
client.go:64
↓ 3 callers
Method
SetApiKeys
(apiKeys []ApiVersionsResponseKey)
mockresponses.go:1552
↓ 3 callers
Method
SetLastOffsetDelta
(topic string, partition int32, offset int32)
fetch_response.go:737
↓ 3 callers
Method
SetLastStableOffset
(topic string, partition int32, offset int64)
fetch_response.go:747
↓ 3 callers
Method
Step
Step steps client through the SCRAM exchange. It is called repeatedly until it errors or `Done` returns true.
broker.go:128
↓ 3 callers
Method
SubscriptionUserData
(topics []string)
balance_strategy.go:82
↓ 3 callers
Method
Topic
Topic returns the consumed topic name.
consumer_group_session.go:535
↓ 3 callers
Method
Topics
Topics returns the set of available topics as retrieved from cluster metadata.
client.go:45
↓ 3 callers
Method
UpdateFeatures
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 callers
Method
WritablePartitions
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 callers
Method
abandonBrokerConnection
(bp *brokerProducer)
async_producer.go:1865
↓ 3 callers
Method
abortableErrorIfPossible
if kafka cluster is at least 2.5.0 mark txnmngr to bump epoch else mark it as fatal.
transaction_manager.go:674
↓ 3 callers
Method
add
(msg *ProducerMessage)
produce_set.go:45
↓ 3 callers
Function
allocateBody
(key, version int16)
request.go:125
↓ 3 callers
Function
assertNotDone
(t *testing.T, ch <-chan T, wait time.Duration)
async_producer_test.go:2034
↓ 3 callers
Function
benchmarkProduceRequestEncodeMetrics
(b *testing.B, partitions int)
produce_request_test.go:162
↓ 3 callers
Function
closeCooperativeGroup
(t *testing.T, group ConsumerGroup, consumeDone <-chan error)
consumer_group_cooperative_test.go:477
↓ 3 callers
Method
closeLocked
closeLocked closes the broker connection and resets state. NOTE: caller must hold b.lock.
broker.go:406
↓ 3 callers
Function
closeProducerWithTimeout
(t *testing.T, p AsyncProducer, timeout time.Duration)
helpers_test.go:19
↓ 3 callers
Method
completeTransaction
End current transaction.
transaction_manager.go:683
↓ 3 callers
Function
compress
(cc CompressionCodec, level int, data []byte)
compress.go:112
↓ 3 callers
Method
computeBackoff
Compute retry backoff considered current attempts.
transaction_manager.go:288
↓ 3 callers
Function
computeMetadataBackoff
(conf *Config, attemptsRemaining int)
client.go:1236
↓ 3 callers
Function
consumerGroupDescribeTestResponse
(version int16)
consumer_group_describe_response_test.go:67
↓ 3 callers
Method
controllerError
(code KError, msg *string)
admin.go:326
↓ 3 callers
Function
cooperativeBrokerHandlers
(t *testing.T, broker *MockBroker, coord *mockCooperativeCoordinator, partitions int32)
consumer_group_cooperative_test.go:377
↓ 3 callers
Method
covers
(topic string, partition int32)
offset_manager.go:297
↓ 3 callers
Method
decode
(pd packetDecoder, version int16)
describe_client_quotas_response.go:223
↓ 3 callers
Function
decodeResponseHeaderV0
decodeResponseHeaderV0 decodes a non-flexible response header read outside responseReceiver and returns the length of the body that follows it.
broker.go:1482
↓ 3 callers
Function
decodeSASLv0Length
decodeSASLv0Length decodes the 4-byte length prefix of a SASL v0 token, which is sent without a Kafka response header.
broker.go:1495
↓ 3 callers
Function
decompress
(cc CompressionCodec, data []byte)
decompress.go:132
↓ 3 callers
Function
dependsOnSpecificNode
Returns a bool indicating whether the resource request needs to go to a specific broker
admin.go:849
↓ 3 callers
Method
dispatcher
()
consumer.go:568
↓ 3 callers
Function
encodeKV
(key, value Encoder)
fetch_response.go:620
↓ 3 callers
Function
endOffsetForPartition
(t *testing.T, topic string, partition int32)
functional_java_interop_test.go:202
↓ 3 callers
Method
ensureRecords
(topic string, partition int32)
produce_request.go:290
↓ 3 callers
Method
errors
errors returns the per-topic errors in deterministic (sorted by topic) order.
metadata.go:47
↓ 3 callers
Method
getProducerID
()
transaction_manager.go:281
↓ 3 callers
Method
getReplicas
(topic string, partitionID int32, extractor func(metadata *PartitionMetadata) []int32)
client.go:431
↓ 3 callers
Function
goroutineBlocked
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 callers
Function
groupBrokerHandlers
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 callers
Method
groupStrategies
groupStrategies gives the deprecated Strategy field precedence when set
config.go:626
↓ 3 callers
Method
handleResponse
(response *brokerProducerResponse)
async_producer.go:1377
↓ 3 callers
Function
handleResponsePromise
(req protocolBody, res protocolBody, promise *responsePromise, metricRegistry metrics.Registry)
broker.go:1293
↓ 3 callers
Method
handleSuccess
(sent *produceSet, response *ProduceResponse)
async_producer.go:1402
↓ 3 callers
Method
initProducerId
()
transaction_manager.go:554
↓ 3 callers
Method
interruptThrottleWaits
interruptThrottleWaits interrupts active throttle waits for the current connection while preserving the deadline for a subsequent connection. It must
broker.go:2104
↓ 3 callers
Function
intersection
Produces the intersection of two slices From https://github.com/juliangruber/go-intersect
balance_strategy_test.go:2272
↓ 3 callers
Method
isAnyMuted
isAnyMuted reports whether any partition in the set has an in-flight batch. Requires: m.mu held.
async_producer.go:153
↓ 3 callers
Function
isConnectionClosedError
(err error)
mockbroker.go:381
↓ 3 callers
Method
isControl
()
records.go:146
↓ 3 callers
Function
isTimeoutError
(err error)
admin.go:290
↓ 3 callers
Method
joinCount
()
consumer_group_cooperative_test.go:262
↓ 3 callers
Function
memberAssignmentsIncludeTopicPartition
(assignments []topicPartitionAssignment, topic topicPartitionAssignment)
balance_strategy.go:716
↓ 3 callers
Function
mockApiVersionsFor
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 callers
Function
newCRC32Field
(polynomial crcPolynomial)
crc32_field.go:49
↓ 3 callers
Function
newCapturingOffsetManager
newCapturingOffsetManager builds an offset manager whose commit requests are recorded in the returned capture.
offset_manager_test.go:1263
↓ 3 callers
Function
newConsumer
(client Client)
consumer.go:133
↓ 3 callers
Function
newDecompressedBatchTooLargeError
(cc CompressionCodec, limit int)
decompress.go:40
↓ 3 callers
Function
newKafkaVersion
(major, minor, veryMinor, patch uint)
utils.go:123
↓ 3 callers
Function
newMetricValidators
()
metrics_helpers_test.go:17
← previous
next →
401–500 of 3,900, ranked by callers