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
Function
newMockCooperativeCoordinator
(t TestReporter, protocol string, script ...map[string][]int32)
consumer_group_cooperative_test.go:139
↓ 3 callers
Function
newOffsetManagerFromClient
(group, memberID string, generation int32, client Client, sessionCanceler context.CancelCauseFunc)
offset_manager.go:60
↓ 3 callers
Function
newProduceSetWithMeta
(parent *asyncProducer, producerID int64, producerEpoch int16)
produce_set.go:36
↓ 3 callers
Function
newTestAdminAt
newTestAdminAt is like newTestAdmin but with a caller-chosen KafkaVersion.
admin_test.go:2574
↓ 3 callers
Method
nextOffset
()
records.go:208
↓ 3 callers
Method
notifyThrottleWaitersLocked
()
broker.go:2122
↓ 3 callers
Method
openCached
openCached opens b while the caller holds the client lock, as cachedLeader does. Opened after the lock is released, a broker that was replaced or clos
client.go:1229
↓ 3 callers
Function
parseKafkaVersion
(version string)
functional_test.go:618
↓ 3 callers
Method
parseResponse
(response *FetchResponse)
consumer.go:890
↓ 3 callers
Method
peekInt8
similar to getSubset, but it doesn't advance the offset
packet_decoder.go:47
↓ 3 callers
Function
printMetrics
(w io.Writer, r metrics.Registry)
tools/kafka-producer-performance/main.go:420
↓ 3 callers
Function
proxyForBrokerID
(t testing.TB, brokerID int32)
functional_test.go:487
↓ 3 callers
Method
putInt16
(in int16)
real_encoder.go:30
↓ 3 callers
Method
putRawBytes
collection
real_encoder.go:81
↓ 3 callers
Method
readyToFlush
()
produce_set.go:347
↓ 3 callers
Method
rebalanceNow
rebalanceNow makes the coordinator announce a rebalance on the next heartbeat.
consumer_group_cooperative_test.go:89
↓ 3 callers
Method
refBrokerConsumer
(broker *Broker)
consumer.go:257
↓ 3 callers
Method
registerForBroker
(broker *Broker, validator *metricValidator)
metrics_helpers_test.go:25
↓ 3 callers
Method
releaseCoordinator
(b *Broker)
offset_manager.go:252
↓ 3 callers
Function
removeTopicPartitionFromMemberAssignments
(assignments []topicPartitionAssignment, topic topicPartitionAssignment)
balance_strategy.go:707
↓ 3 callers
Method
reserveLength
Returns the length of data to reserve for the output of this encoder (eg 4 bytes for a CRC32).
packet_encoder.go:59
↓ 3 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
↓ 3 callers
Method
rollOver
()
async_producer.go:1368
↓ 3 callers
Function
safeClose
(t *testing.T, o io.Closer)
examples/http_server/http_server_test.go:107
↓ 3 callers
Method
saltedPassword
(password []byte, salt []byte, iterations int)
scram_formatter.go:50
↓ 3 callers
Method
satisfies
(other kafkaVersion)
functional_test.go:600
↓ 3 callers
Method
saveOffset
Saves the offset into the input buffer as the location to actually write the calculated value when able.
packet_encoder.go:56
↓ 3 callers
Method
sendError
(err error)
consumer.go:494
↓ 3 callers
Method
setThrottle
(throttleTime time.Duration)
broker.go:2067
↓ 3 callers
Function
startCooperativeGroupWithPartitions
(t *testing.T, coord *mockCooperativeCoordinator, partitions int32, config *Config, h ConsumerGroupHandler)
consumer_group_cooperative_test.go:415
↓ 3 callers
Function
startDockerTestBroker
(ctx context.Context, brokerID int32)
functional_test.go:324
↓ 3 callers
Function
stopDockerTestBroker
(ctx context.Context, brokerID int32)
functional_test.go:335
↓ 3 callers
Method
stopWith
(reason string)
functional_consumer_group_java_interop_test.go:96
↓ 3 callers
Function
testRequestWithoutByteComparison
(t *testing.T, name string, rb protocolBody)
request_test.go:604
↓ 3 callers
Method
updateBroker
(brokers []*Broker)
client.go:705
↓ 3 callers
Method
waitFor
(kind string, expected interface{}, factory func() (interface{}, error))
functional_consumer_group_test.go:614
↓ 3 callers
Function
waitForClaims
(t *testing.T, h *trackingHandler, n int)
consumer_group_cooperative_test.go:431
↓ 3 callers
Function
waitForJoins
(t *testing.T, coord *mockCooperativeCoordinator, n int)
consumer_group_cooperative_test.go:438
↓ 3 callers
Method
waitForSpace
waitForSpace makes space in the accumulating batch by flushing. It loops until the message fits.
async_producer.go:1327
↓ 2 callers
Method
AbortTxn
AbortTxn abort current transaction.
async_producer.go:82
↓ 2 callers
Method
AddBatch
(topic string, partition int32, batch *RecordBatch)
produce_request.go:317
↓ 2 callers
Method
AddBlock
(topic string, partitionID int32, replicas []int32)
alter_partition_reassignments_request.go:142
↓ 2 callers
Method
AddBlock
(topic string, partitionIDs []int32)
list_partition_reassignments_request.go:96
↓ 2 callers
Method
AddBlock
(topic string, partition int32, replicas, addingReplicas, removingReplicas []int32)
list_partition_reassignments_response.go:56
↓ 2 callers
Method
AddGroup
(groupID, protocolType string)
mockresponses.go:95
↓ 2 callers
Method
AddGroup
(group string)
delete_groups_request.go:69
↓ 2 callers
Method
AddGroupAssignment
(memberId string, memberAssignment []byte)
sync_group_request.go:192
↓ 2 callers
Method
AddGroupDescription
(groupID string, description *GroupDescription)
mockresponses.go:118
↓ 2 callers
Method
AddMessage
(topic string, partition int32, msg *Message)
produce_request.go:300
↓ 2 callers
Method
AddMessageWithTimestamp
(topic string, partition int32, key, value Encoder, offset int64, timestamp time.Time, version int8)
fetch_response.go:633
↓ 2 callers
Method
AddOffsetsToTxnWithGroupMetadata
AddOffsetsToTxnWithGroupMetadata adds associated offsets to the current transaction, carrying the consumer group member metadata so the broker can fen
sync_producer.go:65
↓ 2 callers
Method
AddOffsetsToTxnWithGroupMetadata
(offsets map[string][]*PartitionOffsetMetadata, groupMetadata *ConsumerGroupMetadata)
async_producer.go:472
↓ 2 callers
Method
AddPartition
AddPartition appends a partition to the request. On v8+ it targets Groups[0] (seeded from ConsumerGroup if needed); use AddGroupPartition for v8 batch
offset_fetch_request.go:351
↓ 2 callers
Method
AddPartitionsToTxn
AddPartitionsToTxn send a request to add partition to txn and returns a response or error
broker.go:884
↓ 2 callers
Method
AddRecordWithTimestamp
(topic string, partition int32, key, value Encoder, offset int64, timestamp time.Time)
fetch_response.go:649
↓ 2 callers
Method
AlterClientQuotas
Alters client quota configurations with the specified alterations. This operation is supported by brokers with version 2.6.0.0 or higher.
admin.go:189
↓ 2 callers
Method
AlterConsumerGroupOffsets
AlterConsumerGroupOffsets alters offsets for the specified group by committing the provided offsets and metadata. The request targets the group's coor
admin.go:156
↓ 2 callers
Method
AlterUserScramCredentials
(u []AlterUserScramCredentialsUpsert, d []AlterUserScramCredentialsDelete)
admin.go:1673
↓ 2 callers
Method
AssertInitialValues
(count int32)
functional_consumer_group_test.go:729
↓ 2 callers
Method
AssertNoErrs
()
functional_consumer_group_test.go:514
↓ 2 callers
Method
AsyncClose
()
consumer.go:739
↓ 2 callers
Method
AsyncClose
AsyncClose initiates a shutdown of the PartitionOffsetManager. This method will return immediately, after which you should wait until the 'errors' cha
offset_manager.go:643
↓ 2 callers
Method
Begin
Begin prepares the client for the SCRAM exchange with the server with a user name and a password
broker.go:125
↓ 2 callers
Method
Claims
Claims returns the currently claimed partitions by topic. The claims may change across cooperative rebalances.
consumer_group_session.go:15
↓ 2 callers
Method
CommitOffset
CommitOffset return an Offset commit response or error
broker.go:625
↓ 2 callers
Method
ConsumeClaim
ConsumeClaim must start a consumer loop of ConsumerGroupClaim's Messages(). Once the Messages() channel is closed, the Handler must finish its process
consumer_group_session.go:529
↓ 2 callers
Method
CreateAcls
CreateAcls sends a create acl request and returns a response or error
broker.go:835
↓ 2 callers
Method
CreateTopics
CreateTopics send a create topic request and returns create topic response
broker.go:735
↓ 2 callers
Method
DeleteConsumerGroupOffset
Deletes a consumer group offset
admin.go:159
↓ 2 callers
Method
DeleteGroups
DeleteGroups sends a request to delete groups and returns a response or error
broker.go:971
↓ 2 callers
Method
DeleteOffsets
DeleteOffsets sends a request to delete group offsets and returns a response or error
broker.go:982
↓ 2 callers
Method
DeleteTopics
DeleteTopics sends a delete topic request and returns delete topic response
broker.go:747
↓ 2 callers
Method
DescribeClientQuotas
Get client quota configurations corresponding to the specified filter. This operation is supported by brokers with version 2.6.0.0 or higher.
admin.go:185
↓ 2 callers
Method
DescribeGroups
DescribeGroups return describe group response or error
broker.go:711
↓ 2 callers
Method
DescribeUserScramCredentials
Get information about SCRAM users
admin.go:171
↓ 2 callers
Method
Destroy
()
gssapi_kerberos.go:59
↓ 2 callers
Method
Disable
()
internal/toxiproxy/proxy.go:67
↓ 2 callers
Method
Enable
()
internal/toxiproxy/proxy.go:61
↓ 2 callers
Method
EndTxn
EndTxn sends a request to end txn and returns a response or error
broker.go:909
↓ 2 callers
Method
Errors
Errors returns a read channel of errors that occurred during the consumer life-cycle. By default, errors are logged and not returned over this channel
consumer_group.go:78
↓ 2 callers
Method
ExpectInputAndFail
ExpectInputAndFail sets an expectation on the mock producer that a message will be provided on the input channel. The mock producer will handle the me
mocks/async_producer.go:277
↓ 2 callers
Method
ExpectInputWithMessageCheckerFunctionAndFail
ExpectInputWithMessageCheckerFunctionAndFail sets an expectation on the mock producer that a message will be provided on the input channel. The mock p
mocks/async_producer.go:234
↓ 2 callers
Method
ExpectSendMessageWithMessageCheckerFunctionAndFail
ExpectSendMessageWithMessageCheckerFunctionAndFail sets an expectation on the mock producer that SendMessage will be called. The mock producer will fi
mocks/sync_producer.go:211
↓ 2 callers
Method
ExpectSendMessageWithMessageCheckerFunctionAndSucceed
Setting expectations ExpectSendMessageWithMessageCheckerFunctionAndSucceed sets an expectation on the mock producer that SendMessage will be called.
mocks/sync_producer.go:199
↓ 2 callers
Method
FindCoordinator
FindCoordinator sends a find coordinate request and returns a response or error
broker.go:496
↓ 2 callers
Method
GetBlock
(topic string, partition int32)
produce_response.go:451
↓ 2 callers
Method
GetGroup
GetGroup returns the per-group entry for groupID, or nil if absent or on v0-7.
offset_fetch_response.go:389
↓ 2 callers
Method
GroupError
GroupError returns the group-level error: for v8+ the error of Groups[0], otherwise the top-level Err.
offset_fetch_response.go:378
↓ 2 callers
Method
Heartbeat
Heartbeat returns a heartbeat response or error
broker.go:686
↓ 2 callers
Method
InSyncReplicas
InSyncReplicas returns the set of all in-sync replica IDs for the given partition. In-sync replicas are replicas which are fully caught up with the pa
client.go:69
↓ 2 callers
Method
InitProducerID
InitProducerID sends an init producer request and returns a response or error
broker.go:870
↓ 2 callers
Method
InitProducerID
InitProducerID retrieves information required for Idempotent Producer
client.go:112
↓ 2 callers
Method
IsPaused
IsPaused indicates if this partition consumer is paused or not
consumer.go:428
↓ 2 callers
Method
IsTransactional
()
mocks/sync_producer.go:257
↓ 2 callers
Method
JoinGroup
JoinGroup returns a join group response or error
broker.go:650
↓ 2 callers
Method
LastOffset
()
record_batch.go:86
↓ 2 callers
Method
LastRequest
LastRequest returns a copy of the most recent request handled, for assertions.
mockresponses.go:1763
↓ 2 callers
Method
Leader
(topic string, partitionID int32)
client.go:457
↓ 2 callers
Method
LeastLoadedBroker
LeastLoadedBroker retrieves broker that has the least responses pending
client.go:115
↓ 2 callers
Method
Len
()
balance_strategy.go:1207
← previous
next →
501–600 of 3,900, ranked by callers