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
↓ 1 callers
Method
DeleteACL
Deletes access control lists (ACLs) according to the supplied filters. This operation is not transactional so it may succeed for some ACLs while fail
admin.go:119
↓ 1 callers
Method
DeleteAcls
DeleteAcls sends a delete acl request and returns a response or error
broker.go:843
↓ 1 callers
Method
DescribeAcls
DescribeAcls sends a describe acl request and returns a response or error
broker.go:808
↓ 1 callers
Method
DescribeConfigs
DescribeConfigs sends a request to describe config and returns a response or error
broker.go:920
↓ 1 callers
Method
DescribeConfigs
(resources []*ConfigResource, options DescribeConfigsOptions)
admin.go:868
↓ 1 callers
Method
Errorf
(string, ...any)
mockresponses.go:13
↓ 1 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:67
↓ 1 callers
Method
ExpectErrorsDrainedOnClose
ExpectErrorsDrainedOnClose sets an expectation on the partition consumer that the errors channel will be fully drained when Close is called. If this e
mocks/consumer.go:432
↓ 1 callers
Method
ExpectInputWithCheckerFunctionAndSucceed
ExpectInputWithCheckerFunctionAndSucceed sets an expectation on the mock producer that a message will be provided on the input channel. The mock produ
mocks/async_producer.go:246
↓ 1 callers
Method
For
(reqBody versionedDecoder)
mockresponses.go:848
↓ 1 callers
Method
Get
()
broker_test.go:112
↓ 1 callers
Method
GetAll
()
metrics.go:100
↓ 1 callers
Method
GetBlock
(topic string, partition int32)
offset_response.go:147
↓ 1 callers
Method
GetConsumerMetadata
GetConsumerMetadata send a consumer metadata request and returns a consumer metadata response or error
broker.go:472
↓ 1 callers
Method
GetGroupBlock
GetGroupBlock returns the block for groupID/topic/partition, or nil on v0-7.
offset_fetch_response.go:421
↓ 1 callers
Method
GetMemberAssignment
()
sync_group_response.go:26
↓ 1 callers
Method
GetMembers
()
join_group_response.go:41
↓ 1 callers
Method
GetOrRegister
(name string, metric any)
metrics.go:82
↓ 1 callers
Method
GetServiceTicket
(spn string)
gssapi_kerberos.go:56
↓ 1 callers
Method
IncrementalAlterConfigs
IncrementalAlterConfigs sends a request to incremental alter config and return a response or error
broker.go:944
↓ 1 callers
Method
InitialOffset
InitialOffset returns the initial offset that was used as a starting point for this claim.
consumer_group_session.go:435
↓ 1 callers
Method
IsPaused
IsPaused implements PartitionConsumer.
consumer.go:1043
↓ 1 callers
Method
IsTransactional
IsTransactional return true when current producer is transactional.
async_producer.go:69
↓ 1 callers
Method
IsTransactional
()
mocks/async_producer.go:160
↓ 1 callers
Method
LeaderAndEpoch
(topic string, partitionID int32)
client.go:467
↓ 1 callers
Method
Len
()
functional_consumer_group_test.go:359
↓ 1 callers
Method
ListAcls
Lists access control lists (ACLs) according to the supplied filter. it may take some time for changes made by createAcls or deleteAcls to be reflected
admin.go:114
↓ 1 callers
Method
MarkOffset
MarkOffset marks the provided offset, alongside a metadata string that represents the state of the partition consumer at that point in time. The metad
consumer_group_session.go:34
↓ 1 callers
Method
MarkOffset
(topic string, partition int32, offset int64, metadata string)
consumer_group_session.go:160
↓ 1 callers
Method
Messages
Messages returns the read channel for the messages that are returned by the broker. The messages channel will be closed when a new rebalance cycle is
consumer_group_session.go:447
↓ 1 callers
Method
MetadataTopics
()
client.go:366
↓ 1 callers
Function
NewBalanceStrategyCooperativeSticky
NewBalanceStrategyCooperativeSticky returns a cooperative sticky balance strategy Existing groups should first deploy it alongside their current eage
balance_strategy_cooperative_sticky.go:18
↓ 1 callers
Function
NewClient
(endpoint string)
internal/toxiproxy/client.go:17
↓ 1 callers
Function
NewConsistentCRCHashPartitioner
NewConsistentCRCHashPartitioner is like NewHashPartitioner except that it uses the *unsigned* crc32 hash of the encoded bytes of the message key modul
partitioner.go:200
↓ 1 callers
Function
NewDescribeClientQuotasRequest
(version KafkaVersion, components []QuotaFilterComponent, strict bool)
describe_client_quotas_request.go:26
↓ 1 callers
Function
NewKerberosClient
NewKerberosClient creates kerberos client used to obtain TGT and TGS tokens. It uses pure go Kerberos 5 solution (RFC-4121 and RFC-4120). uses gokrb5
kerberos_client.go:26
↓ 1 callers
Function
NewLoadAwareSticky
NewLoadAwareSticky returns a load-aware wrapper around the sticky strategy. The observe callback is invoked once per JoinGroup; its return value is JS
examples/consumer_load_aware/load_aware_sticky.go:40
↓ 1 callers
Function
NewManualPartitioner
NewManualPartitioner returns a Partitioner which uses the partition manually set in the provided ProducerMessage's Partition field as the partition to
partitioner.go:82
↓ 1 callers
Function
NewMockAlterConfigsResponseWithErrorCode
(t TestReporter)
mockresponses.go:992
↓ 1 callers
Function
NewMockCreateAclsResponseWithError
(t TestReporter)
mockresponses.go:1078
↓ 1 callers
Function
NewMockDeleteAclsResponse
(t TestReporter)
mockresponses.go:1201
↓ 1 callers
Function
NewMockDeleteGroupsRequest
(t TestReporter)
mockresponses.go:1222
↓ 1 callers
Function
NewMockDeleteOffsetRequest
(t TestReporter)
mockresponses.go:1250
↓ 1 callers
Function
NewMockDescribeConfigsResponseWithErrorCode
(t TestReporter)
mockresponses.go:945
↓ 1 callers
Function
NewMockDescribeGroupsResponse
(t TestReporter)
mockresponses.go:103
↓ 1 callers
Function
NewMockElectLeadersResponse
(t TestReporter)
mockresponses.go:799
↓ 1 callers
Function
NewMockIncrementalAlterConfigsResponseWithErrorCode
(t TestReporter)
mockresponses.go:1037
↓ 1 callers
Function
NewMockInitProducerIDResponse
(t TestReporter)
mockresponses.go:1519
↓ 1 callers
Function
NewMockListAclsResponse
(t TestReporter)
mockresponses.go:1096
↓ 1 callers
Function
NewMockProduceResponse
(t TestReporter)
mockresponses.go:561
↓ 1 callers
Function
NewMockUpdateFeaturesResponse
(t TestReporter)
mockresponses.go:1555
↓ 1 callers
Function
NewOTelInterceptor
NewOTelInterceptor processes span for intercepted messages and add some headers with the span data.
examples/interceptors/trace_interceptor.go:21
↓ 1 callers
Function
NewOffsetCommitRequest
NewOffsetCommitRequest creates an OffsetCommitRequest initialized for admin use. The version-mapping logic mirrors offsetManager.constructRequest in
offset_commit_request.go:90
↓ 1 callers
Method
OfflineReplicas
OfflineReplicas returns the set of all offline replica IDs for the given partition. Offline replicas are replicas which are offline
client.go:73
↓ 1 callers
Method
OnConsume
OnConsume is called when the consumed message is intercepted. Please avoid modifying the message until it's safe to do so, as this is _not_ a copy of
interceptors.go:22
↓ 1 callers
Method
OnSend
OnSend is called when the producer message is intercepted. Please avoid modifying the message until it's safe to do so, as this is _not_ a copy of the
interceptors.go:11
↓ 1 callers
Method
PartitionNotReadable
PartitionNotReadable checks if partition is not readable
client.go:118
↓ 1 callers
Method
Partitions
Partitions returns the sorted list of all partition IDs for the given topic. This method is the same as Client.Partitions(), and is provided for conve
consumer.go:62
↓ 1 callers
Method
Partitions
Partitions returns the list of parititons for the given topic, as registered with SetTopicMetadata
mocks/consumer.go:88
↓ 1 callers
Method
Pause
Pause implements Consumer.
consumer.go:294
↓ 1 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_group.go:77
↓ 1 callers
Method
PauseAll
PauseAll implements Consumer.
consumer.go:335
↓ 1 callers
Method
PauseAll
Pause suspends fetching from all partitions. Future calls to the broker will not return any records from these partitions until they have been resumed
consumer_group.go:87
↓ 1 callers
Method
Pop
()
balance_strategy.go:1220
↓ 1 callers
Method
Proxy
(name string)
internal/toxiproxy/client.go:53
↓ 1 callers
Method
Push
(clientID string, m *ConsumerMessage)
functional_consumer_group_test.go:366
↓ 1 callers
Method
Rack
Rack returns the broker's rack as retrieved from Kafka's metadata or the empty string if it is not known. The returned value corresponds to the broke
broker.go:440
↓ 1 callers
Method
RefreshBrokers
RefreshBrokers takes a list of addresses to be used as seed brokers. Existing broker connections are closed and the updated list of seed brokers will
client.go:78
↓ 1 callers
Method
RefreshController
RefreshController retrieves the cluster controller from fresh metadata and stores it in the local cache. Requires Kafka 0.10 or higher.
client.go:36
↓ 1 callers
Method
RefreshCoordinator
(consumerGroup string)
client.go:622
↓ 1 callers
Method
RefreshTransactionCoordinator
(transactionID string)
client.go:661
↓ 1 callers
Method
RemoveMemberFromConsumerGroup
Remove members from the consumer group by given member identities. This operation is supported by brokers with version 2.3 or higher This is for stati
admin.go:202
↓ 1 callers
Method
ReplicaID
()
offset_request.go:251
↓ 1 callers
Method
RequiresConsistency
RequiresConsistency indicates to the user of the partitioner whether the mapping of key->partition is consistent or not. Specifically, if a partitione
partitioner.go:23
↓ 1 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
consumer_group_session.go:46
↓ 1 callers
Method
ResetState
()
internal/toxiproxy/client.go:78
↓ 1 callers
Method
ResponseSize
()
broker.go:339
↓ 1 callers
Method
Resume
Resume implements Consumer.
consumer.go:314
↓ 1 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_group.go:81
↓ 1 callers
Method
ResumeAll
ResumeAll implements Consumer.
consumer.go:352
↓ 1 callers
Method
ResumeAll
Resume resumes all partitions which have been paused with Pause()/PauseAll(). New calls to the broker will return records from these partitions if the
consumer_group.go:91
↓ 1 callers
Function
SaveProxy
(t *testing.T, px string)
functional_test.go:470
↓ 1 callers
Method
SetApiKeys
(apiKeys []ApiVersionsResponseKey)
mockresponses.go:1497
↓ 1 callers
Method
SetDeletedGroups
(groups []string)
mockresponses.go:1226
↓ 1 callers
Method
SetDeletedOffset
(errorCode KError, topic string, partition int32, errorPartition KError)
mockresponses.go:1254
↓ 1 callers
Method
SetError
(group, topic string, partition int32, kerror KError)
mockresponses.go:508
↓ 1 callers
Method
SetGSSAPIHandler
(handler GSSApiHandlerFunc)
mockbroker.go:196
↓ 1 callers
Method
SetGenerationId
(id int32)
mockresponses.go:1318
↓ 1 callers
Method
SetLeaderId
(id string)
mockresponses.go:1328
↓ 1 callers
Method
SetNotifier
SetNotifier set a function that will get invoked whenever a request has been processed successfully and will provide the number of bytes read and writ
mockbroker.go:113
↓ 1 callers
Method
SetProducerEpoch
(epoch int)
mockresponses.go:1530
↓ 1 callers
Method
SetProducerID
(id int)
mockresponses.go:1525
↓ 1 callers
Method
SetTopicMetadata
Expectation API SetTopicMetadata sets the clusters topic/partition metadata, which will be returned by Topics() and Partitions().
mocks/consumer.go:196
↓ 1 callers
Method
Setup
Setup is run at the beginning of a new session, before ConsumeClaim.
consumer_group_session.go:412
↓ 1 callers
Method
String
()
message.go:35
↓ 1 callers
Method
String
()
acl_types.go:35
↓ 1 callers
Method
String
()
acl_types.go:98
↓ 1 callers
Method
String
()
acl_types.go:147
↓ 1 callers
Method
String
()
acl_types.go:200
↓ 1 callers
Method
SupportedProtocols
()
rebalance_protocol.go:40
← previous
next →
801–900 of 3,668, ranked by callers