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
↓ 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:344
↓ 2 callers
Method
AddPartitionsToTxn
AddPartitionsToTxn send a request to add partition to txn and returns a response or error
broker.go:869
↓ 2 callers
Method
AddRecordWithTimestamp
(topic string, partition int32, key, value Encoder, offset int64, timestamp time.Time)
fetch_response.go:649
↓ 2 callers
Method
AddToxic
( name string, toxicType string, stream string, toxicity float32, attributes Attributes, )
internal/toxiproxy/proxy.go:21
↓ 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:1603
↓ 2 callers
Method
AssertInitialValues
(count int32)
functional_consumer_group_test.go:687
↓ 2 callers
Method
AssertNoErrs
()
functional_consumer_group_test.go:472
↓ 2 callers
Method
AsyncClose
()
consumer.go:721
↓ 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:633
↓ 2 callers
Method
Begin
Begin prepares the client for the SCRAM exchange with the server with a user name and a password
broker.go:122
↓ 2 callers
Method
Broker
Broker returns the active Broker if available for the broker ID.
client.go:42
↓ 2 callers
Method
CommitOffset
CommitOffset return an Offset commit response or error
broker.go:610
↓ 2 callers
Method
CreateAcls
CreateAcls sends a create acl request and returns a response or error
broker.go:820
↓ 2 callers
Method
CreateTopics
CreateTopics send a create topic request and returns create topic response
broker.go:720
↓ 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:956
↓ 2 callers
Method
DeleteOffsets
DeleteOffsets sends a request to delete group offsets and returns a response or error
broker.go:967
↓ 2 callers
Method
DeleteTopics
DeleteTopics sends a delete topic request and returns delete topic response
broker.go:732
↓ 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
DescribeCluster
Get information about the nodes in the cluster
admin.go:165
↓ 2 callers
Method
DescribeGroups
DescribeGroups return describe group response or error
broker.go:696
↓ 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:894
↓ 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:276
↓ 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:233
↓ 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:181
↓ 2 callers
Method
ExpectSendMessageWithMessageCheckerFunctionAndSucceed
Setting expectations ExpectSendMessageWithMessageCheckerFunctionAndSucceed sets an expectation on the mock producer that SendMessage will be called.
mocks/sync_producer.go:169
↓ 2 callers
Method
FindCoordinator
FindCoordinator sends a find coordinate request and returns a response or error
broker.go:484
↓ 2 callers
Method
GenerationID
()
consumer_group_session.go:158
↓ 2 callers
Method
GetBlock
(topic string, partition int32)
produce_response.go:449
↓ 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:671
↓ 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:855
↓ 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:424
↓ 2 callers
Method
IsTransactional
()
mocks/sync_producer.go:227
↓ 2 callers
Method
JoinGroup
JoinGroup returns a join group response or error
broker.go:635
↓ 2 callers
Method
LastOffset
()
record_batch.go:59
↓ 2 callers
Method
LastRequest
LastRequest returns a copy of the most recent request handled, for assertions.
mockresponses.go:1708
↓ 2 callers
Method
Leader
(topic string, partitionID int32)
client.go:462
↓ 2 callers
Method
LeastLoadedBroker
LeastLoadedBroker retrieves broker that has the least responses pending
client.go:115
↓ 2 callers
Method
Len
()
balance_strategy.go:1201
↓ 2 callers
Method
Less
(i, j int)
utils.go:26
↓ 2 callers
Method
ListConsumerGroupOffsetsBatch
ListConsumerGroupOffsetsBatch fetches committed offsets for multiple consumer groups in a single round trip per coordinator using OffsetFetch v8+ (KIP
admin.go:142
↓ 2 callers
Method
ListGroups
ListGroups return a list group response or error
broker.go:683
↓ 2 callers
Method
ListOffsets
ListOffsets lists offsets for the specified topic partitions. Each value is OffsetNewest, OffsetOldest, or a timestamp in milliseconds. Results are ke
admin.go:151
↓ 2 callers
Method
Login
()
gssapi_kerberos.go:55
↓ 2 callers
Method
Login
Login will use the given KerberosClient to login and get a ticket for the given spn.
gssapi_kerberos.go:213
↓ 2 callers
Method
MemberID
()
consumer_group_session.go:157
↓ 2 callers
Function
NewConsumerGroupMetadataFromSession
NewConsumerGroupMetadataFromSession builds metadata from a live consumer group session, copying the member ID and generation ID so the broker can fenc
consumer_group_metadata.go:33
↓ 2 callers
Function
NewCreateTopicsRequest
( version KafkaVersion, topicDetails map[string]*TopicDetail, timeout time.Duration, validateOnly bool, )
create_topics_request.go:23
↓ 2 callers
Function
NewCustomHashPartitioner
NewCustomHashPartitioner is a wrapper around NewHashPartitioner, allowing the use of custom hasher. The argument is a function providing the instance,
partitioner.go:145
↓ 2 callers
Function
NewCustomPartitioner
NewCustomPartitioner creates a default Partitioner but lets you specify the behavior of each component via options
partitioner.go:157
↓ 2 callers
Function
NewDeleteTopicsRequest
(version KafkaVersion, topics []string, timeout time.Duration)
delete_topics_request.go:15
↓ 2 callers
Function
NewDescribeClusterRequest
(version KafkaVersion)
describe_cluster_request.go:18
↓ 2 callers
Function
NewMockAlterConfigsResponse
(t TestReporter)
mockresponses.go:970
↓ 2 callers
Function
NewMockAlterPartitionReassignmentsResponse
(t TestReporter)
mockresponses.go:762
↓ 2 callers
Function
NewMockBrokerListener
NewMockBrokerListener behaves like newMockBrokerAddr but accepts connections on the listener specified.
mockbroker.go:440
↓ 2 callers
Function
NewMockDescribeLogDirsResponse
(t TestReporter)
mockresponses.go:1435
↓ 2 callers
Function
NewMockHeartbeatResponse
(t TestReporter)
mockresponses.go:1412
↓ 2 callers
Function
NewMockIncrementalAlterConfigsResponse
(t TestReporter)
mockresponses.go:1015
↓ 2 callers
Function
NewMockLeaveGroupResponse
(t TestReporter)
mockresponses.go:1353
↓ 2 callers
Function
NewMockListGroupsResponse
(t TestReporter)
mockresponses.go:77
↓ 2 callers
Function
NewMockListPartitionReassignmentsResponse
(t TestReporter)
mockresponses.go:777
↓ 2 callers
Function
NewMurmur2Partitioner
NewMurmur2Partitioner returns a Partitioner that replicates the partitioning behavior of the Apache Kafka Java client's DefaultPartitioner. It uses th
partitioner.go:263
↓ 2 callers
Function
NewOffsetRequest
(version KafkaVersion)
offset_request.go:61
↓ 2 callers
Function
NewRoundRobinPartitioner
NewRoundRobinPartitioner returns a Partitioner which walks through the available partitions one at a time.
partitioner.go:118
↓ 2 callers
Function
NewTopicConfig
NewTopicConfig makes a configuration which defaults to 32 partitions for every topic.
mocks/mocks.go:74
↓ 2 callers
Method
OnAssignment
(assignment *ConsumerGroupMemberAssignment, generationID int32)
balance_strategy.go:115
↓ 2 callers
Method
PauseAll
PauseAll suspends fetching from all partitions. Future calls to the broker will not return any records from these partitions until they have been resu
consumer.go:92
↓ 2 callers
Method
Produce
Produce returns a produce response or error
broker.go:563
↓ 2 callers
Method
ResumeAll
ResumeAll resumes all partitions which have been paused with Pause()/PauseAll(). New calls to the broker will return records from these partitions if
consumer.go:96
↓ 2 callers
Method
SetLogDirs
(logDirPath string, topicPartitions map[string]int)
mockresponses.go:1439
↓ 2 callers
Method
SetMemberId
(id string)
mockresponses.go:1333
↓ 2 callers
Method
SetMessageWithKey
(topic string, partition int32, offset int64, key, msg Encoder)
mockresponses.go:315
↓ 2 callers
Method
SetReplicaID
(id int32)
offset_request.go:246
↓ 2 callers
Method
SetSessionLifetimeMs
(sessionLifetimeMs int64)
mockresponses.go:1164
↓ 2 callers
Method
SubscriptionUserData
(topics []string)
balance_strategy.go:82
↓ 2 callers
Method
SyncGroup
SyncGroup returns a sync group response or error
broker.go:647
↓ 2 callers
Method
Topics
Topics returns a list of topics, as registered with SetTopicMetadata
mocks/consumer.go:71
↓ 2 callers
Method
Unwrap
()
errors.go:137
↓ 2 callers
Method
abandonBrokerConnection
(broker *Broker)
async_producer.go:1785
↓ 2 callers
Method
abort
(err error)
consumer.go:1273
↓ 2 callers
Function
acquireCrc32Field
(polynomial crcPolynomial)
crc32_field.go:19
↓ 2 callers
Method
addChild
(child *partitionConsumer)
consumer.go:228
↓ 2 callers
Method
addError
addError adds an error for a topic to the set. The wrap preserves the underlying error for errors.Is/As.
metadata.go:17
↓ 2 callers
Method
addMessage
(msg *Message)
message_set.go:108
↓ 2 callers
Function
allocateResponseBody
allocateResponseBody returns a fresh response struct for the given api key and version, or nil when the key is unknown. Not used at runtime, but mirro
request.go:254
↓ 2 callers
Function
areSubscriptionsIdentical
(partition2AllPotentialConsumers map[topicPartitionAssignment][]string, consumer2AllPotentialPartitions map[st
balance_strategy.go:823
↓ 2 callers
Function
assignPartition
The assignment should improve the overall balance of the partition assignments to consumers.
balance_strategy.go:659
↓ 2 callers
Method
authenticateViaSASLv1
()
broker.go:1499
↓ 2 callers
Method
backoff
(retries int)
async_producer.go:804
↓ 2 callers
Method
backoff
(retries int)
async_producer.go:808
← previous
next →
501–600 of 3,668, ranked by callers