Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/sarama
/ functions
Functions
3,668 in github.com/IBM/sarama
⨍
Functions
3,668
◇
Types & classes
511
↓ 8 callers
Method
TransactionCoordinator
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 callers
Method
Write
(p []byte)
client_test.go:1390
↓ 8 callers
Method
currentTxnStatus
Get current transaction status.
transaction_manager.go:204
↓ 8 callers
Function
encodeSubscriberPlanWithGeneration
(t *testing.T, assignments map[string][]int32, generation int32)
balance_strategy_test.go:2289
↓ 8 callers
Method
getUVarint
()
packet_decoder.go:22
↓ 8 callers
Method
key
()
request.go:12
↓ 8 callers
Function
nullString
(s string)
request_test.go:688
↓ 8 callers
Method
putRawBytes
(in []byte)
packet_encoder.go:29
↓ 8 callers
Method
returnError
(msg *ProducerMessage, err error)
async_producer.go:1701
↓ 8 callers
Function
testRequestDecode
(t *testing.T, name string, rb protocolBody, packet []byte)
request_test.go:636
↓ 7 callers
Method
AbortTxn
AbortTxn abort current transaction.
sync_producer.go:52
↓ 7 callers
Method
Coordinator
Coordinator returns the coordinating broker for a consumer group. It will return a locally cached value if it's available.
admin.go:197
↓ 7 callers
Method
CreateTopic
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
↓ 7 callers
Method
GetOffset
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 callers
Method
IsTransactional
()
async_producer.go:447
↓ 7 callers
Function
NewBalanceStrategySticky
NewBalanceStrategySticky returns a sticky balance strategy, which assigns partitions to members with an attempt to preserve earlier assignments while
balance_strategy.go:167
↓ 7 callers
Function
NewMockOffsetFetchResponse
(t TestReporter)
mockresponses.go:618
↓ 7 callers
Function
NewMockSaslAuthenticateResponse
(t TestReporter)
mockresponses.go:1139
↓ 7 callers
Method
Pause
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 callers
Method
TxnStatus
TxnStatus return current producer transaction status.
sync_producer.go:40
↓ 7 callers
Method
addRequestInFlightMetrics
(i int64)
broker.go:1914
↓ 7 callers
Method
buildRequest
()
produce_set.go:180
↓ 7 callers
Function
generateRegexpChecker
(re string)
mocks/async_producer_test.go:15
↓ 7 callers
Method
getOrCreateBlock
(topic string, partition int32)
fetch_response.go:602
↓ 7 callers
Function
getOrRegisterHistogram
(name string, r metrics.Registry)
metrics.go:20
↓ 7 callers
Function
newDefaultRecords
(batch *RecordBatch)
records.go:24
↓ 7 callers
Function
newTransactionManager
Build a new transaction manager sharing producer client.
transaction_manager.go:924
↓ 7 callers
Method
release
()
consumer.go:446
↓ 7 callers
Function
runTestFuncConsumerGroupMemberWithConfig
( t *testing.T, config *Config, groupID string, maxMessages int32, sink *testFuncConsumerGroupSink, topi
functional_consumer_group_test.go:428
↓ 6 callers
Method
AsyncClose
AsyncClose initiates a shutdown of the PartitionConsumer. This method will return immediately, after which you should continue to service the 'Message
consumer.go:388
↓ 6 callers
Method
DeleteRecords
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 callers
Method
DeleteTopic
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
↓ 6 callers
Method
DescribeTopics
Describe some topics in the cluster.
admin.go:30
↓ 6 callers
Method
ExpectSendMessageWithCheckerFunctionAndSucceed
ExpectSendMessageWithCheckerFunctionAndSucceed sets an expectation on the mock producer that SendMessage will be called. The mock producer will first
mocks/sync_producer.go:193
↓ 6 callers
Function
NewBalanceStrategyRoundRobin
NewBalanceStrategyRoundRobin returns a round-robin balance strategy, which assigns partitions to members in alternating order. For example, there are
balance_strategy.go:400
↓ 6 callers
Function
NewConsumerFromClient
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 callers
Function
NewMockBrokerAddr
NewMockBrokerAddr behaves like newMockBroker but listens on the address you give it rather than just some ephemeral port.
mockbroker.go:412
↓ 6 callers
Function
NewMockDescribeConfigsResponse
(t TestReporter)
mockresponses.go:844
↓ 6 callers
Function
NewMockListTransactionsResponse
(t TestReporter)
mockresponses.go:1677
↓ 6 callers
Function
NewMockSaslHandshakeResponse
(t TestReporter)
mockresponses.go:1179
↓ 6 callers
Method
Plan
Plan accepts a map of `memberID -> metadata` and a map of `topic -> partitions` and returns a distribution plan.
balance_strategy.go:56
↓ 6 callers
Method
RefreshMetadata
(topics ...string)
client.go:513
↓ 6 callers
Method
Resume
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 callers
Method
SendMessages
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:32
↓ 6 callers
Method
SetAuthBytes
(saslAuthBytes []byte)
mockresponses.go:1159
↓ 6 callers
Method
SetEnabledMechanisms
(enabledMechanisms []string)
mockresponses.go:1196
↓ 6 callers
Method
YieldMessage
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 callers
Function
awaitMessage
bound receives so a stall fails one test instead of timing out the suite
functional_producer_test.go:408
↓ 6 callers
Function
getMetricNameForBroker
(name string, broker *Broker)
metrics.go:26
↓ 6 callers
Function
isRetriableGroupCoordinatorError
isRetriableGroupCoordinatorError returns `true` if the given error type unwraps to an `ErrNotCoordinatorForConsumer`, `ErrConsumerCoordinatorNotAvaila
admin.go:267
↓ 6 callers
Function
newBrokerSubscription
(child *partitionConsumer)
consumer.go:439
↓ 6 callers
Function
newCleanupRegistry
(parent metrics.Registry)
metrics.go:55
↓ 6 callers
Function
newMockTxnManager
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:446
↓ 6 callers
Function
restrictApiVersion
restrictApiVersion selects the appropriate API version for a given protocol body according to the client and broker version ranges. By default, it sel
api_versions.go:15
↓ 6 callers
Function
safeAsyncClose
(b *Broker)
utils.go:53
↓ 6 callers
Method
setTypeFromFields
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 callers
Function
sortMemberIDsByPartitionAssignments
(assignments map[string][]topicPartitionAssignment)
balance_strategy.go:778
↓ 6 callers
Method
stopDispatcher
()
consumer.go:542
↓ 6 callers
Function
testProducingMessages
(t *testing.T, config *Config, minVersion KafkaVersion)
functional_producer_test.go:984
↓ 6 callers
Method
updateIncomingCommunicationMetrics
(bytes int, requestLatency time.Duration)
broker.go:1883
↓ 6 callers
Method
updateOutgoingCommunicationMetrics
(bytes int)
broker.go:1921
↓ 5 callers
Method
AlterPartitionReassignments
Alter the replica assignment for partitions. This operation is supported by brokers with version 2.4.0.0 or higher.
admin.go:50
↓ 5 callers
Method
BeginTxn
BeginTxn mark current transaction as ready.
async_producer.go:75
↓ 5 callers
Method
CommitTxn
CommitTxn commit current transaction.
async_producer.go:78
↓ 5 callers
Method
CreatePartitions
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 callers
Method
ExpectSendMessageAndSucceed
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:212
↓ 5 callers
Method
ListConsumerGroupOffsets
List the consumer group offsets available in the cluster.
admin.go:131
↓ 5 callers
Method
ListPartitionReassignments
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 callers
Method
MarkMessage
MarkMessage marks a message as consumed.
consumer_group_session.go:49
↓ 5 callers
Function
NewConsumerGroupFromClient
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:135
↓ 5 callers
Function
NewMockDescribeProducersResponse
(t TestReporter)
mockresponses.go:1579
↓ 5 callers
Function
NewMockJoinGroupResponse
(t TestReporter)
mockresponses.go:1286
↓ 5 callers
Function
NewMockSyncGroupResponse
(t TestReporter)
mockresponses.go:1378
↓ 5 callers
Method
RefreshTransactionCoordinator
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 callers
Method
ResetOffset
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:620
↓ 5 callers
Method
SetMemberAssignment
(assignment *ConsumerGroupMemberAssignment)
mockresponses.go:1397
↓ 5 callers
Method
WaitForHandlers
(expected int)
functional_consumer_group_test.go:493
↓ 5 callers
Function
benchmarkProducer
(b *testing.B, conf *Config, topic string, value Encoder)
functional_producer_test.go:1332
↓ 5 callers
Function
createClient
(config *GSSAPIConfig, cfg *krb5config.Config)
kerberos_client.go:34
↓ 5 callers
Method
eachPartition
(cb func(topic string, partition int32, pSet *partitionSet))
produce_set.go:283
↓ 5 callers
Method
getBrokerProducer
(broker *Broker)
async_producer.go:1753
↓ 5 callers
Method
getTaggedFieldArray
(taggedFieldDecoders)
packet_decoder.go:29
↓ 5 callers
Method
getUuid
()
packet_decoder.go:35
↓ 5 callers
Method
handleError
(err error, topic string, partition int32)
consumer_group.go:821
↓ 5 callers
Method
handleThrottledResponse
(resp protocolBody)
broker.go:1961
↓ 5 callers
Method
headerVersion
()
request.go:15
↓ 5 callers
Function
histogramValidator
(name string, extraValidator func(*testing.T, metrics.Histogram))
metrics_helpers_test.go:70
↓ 5 callers
Function
newLegacyRecords
(msgSet *MessageSet)
records.go:20
↓ 5 callers
Method
partitions
()
sticky_assignor_user_data.go:9
↓ 5 callers
Method
putInt32
(in int32)
real_encoder.go:35
↓ 5 callers
Method
putUuid
(in Uuid)
packet_encoder.go:30
↓ 5 callers
Method
queueSubscription
(subscription *brokerSubscription)
consumer.go:1399
↓ 5 callers
Method
readFull
readFull ensures the conn ReadDeadline has been setup before making a call to io.ReadFull
broker.go:1089
↓ 5 callers
Method
releaseSubscription
(child *partitionConsumer)
consumer.go:1392
↓ 5 callers
Method
triggerRedispatch
triggerRedispatch queues a redispatch signal unless one is already pending. If the child is shutting down, the signal is ignored.
consumer.go:527
↓ 5 callers
Method
unrefBrokerProducer
(broker *Broker, bp *brokerProducer)
async_producer.go:1770
↓ 5 callers
Method
write
write ensures the conn Deadline has been setup before making a call to conn.Write
broker.go:1099
↓ 4 callers
Method
AddBlock
AddBlock adds a block for topic/partition. On v8+ it appends under Groups[0], creating it if needed.
offset_fetch_response.go:434
↓ 4 callers
Method
AddGroupProtocol
(name string, metadata []byte)
join_group_request.go:239
↓ 4 callers
Method
AddProducer
(topic string, partition int32, producer ProducerState)
mockresponses.go:1587
← previous
next →
201–300 of 3,668, ranked by callers