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
↓ 1 callers
Method
GetAll
()
metrics.go:100
↓ 1 callers
Method
GetConsumerMetadata
GetConsumerMetadata send a consumer metadata request and returns a consumer metadata response or error
broker.go:484
↓ 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:959
↓ 1 callers
Method
InitialOffset
InitialOffset returns the initial offset that was used as a starting point for this claim.
consumer_group_session.go:541
↓ 1 callers
Method
IsPaused
IsPaused implements PartitionConsumer.
consumer.go:1061
↓ 1 callers
Method
IsTransactional
IsTransactional return true when current producer is transactional.
async_producer.go:70
↓ 1 callers
Method
IsTransactional
()
mocks/async_producer.go:161
↓ 1 callers
Method
LeaderAndEpoch
(topic string, partitionID int32)
client.go:462
↓ 1 callers
Method
Len
()
functional_consumer_group_test.go:401
↓ 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:37
↓ 1 callers
Method
MarkOffset
(topic string, partition int32, offset int64, metadata string)
consumer_group_session.go:231
↓ 1 callers
Method
Messages
Messages returns messages from the broker. The channel closes when the claim is released. You must finish processing and mark offsets within Config.Co
consumer_group_session.go:551
↓ 1 callers
Method
MetadataTopics
()
client.go:361
↓ 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:1047
↓ 1 callers
Function
NewMockConsumerGroupDescribeResponse
(t TestReporter)
mockresponses.go:149
↓ 1 callers
Function
NewMockCreateAclsResponseWithError
(t TestReporter)
mockresponses.go:1133
↓ 1 callers
Function
NewMockDeleteAclsResponse
(t TestReporter)
mockresponses.go:1256
↓ 1 callers
Function
NewMockDeleteGroupsRequest
(t TestReporter)
mockresponses.go:1277
↓ 1 callers
Function
NewMockDeleteOffsetRequest
(t TestReporter)
mockresponses.go:1305
↓ 1 callers
Function
NewMockDescribeConfigsResponseWithErrorCode
(t TestReporter)
mockresponses.go:1000
↓ 1 callers
Function
NewMockDescribeGroupsResponse
(t TestReporter)
mockresponses.go:111
↓ 1 callers
Function
NewMockIncrementalAlterConfigsResponseWithErrorCode
(t TestReporter)
mockresponses.go:1092
↓ 1 callers
Function
NewMockInitProducerIDResponse
(t TestReporter)
mockresponses.go:1574
↓ 1 callers
Function
NewMockListAclsResponse
(t TestReporter)
mockresponses.go:1151
↓ 1 callers
Function
NewMockProduceResponse
(t TestReporter)
mockresponses.go:616
↓ 1 callers
Function
NewMockUpdateFeaturesResponse
(t TestReporter)
mockresponses.go:1610
↓ 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
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
Owned
()
functional_consumer_group_java_interop_test.go:105
↓ 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:298
↓ 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:88
↓ 1 callers
Method
PauseAll
PauseAll implements Consumer.
consumer.go:339
↓ 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:98
↓ 1 callers
Method
Pop
()
balance_strategy.go:1226
↓ 1 callers
Method
Proxy
(name string)
internal/toxiproxy/client.go:53
↓ 1 callers
Method
Push
(clientID string, m *ConsumerMessage)
functional_consumer_group_test.go:408
↓ 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:452
↓ 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
RefreshCoordinator
(consumerGroup string)
client.go:615
↓ 1 callers
Method
RefreshTransactionCoordinator
(transactionID string)
client.go:653
↓ 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:49
↓ 1 callers
Method
ResetState
()
internal/toxiproxy/client.go:78
↓ 1 callers
Method
ResponseSize
()
broker.go:344
↓ 1 callers
Method
Resume
Resume implements Consumer.
consumer.go:318
↓ 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:92
↓ 1 callers
Method
ResumeAll
ResumeAll implements Consumer.
consumer.go:356
↓ 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:102
↓ 1 callers
Function
SaveProxy
(t *testing.T, px string)
functional_test.go:481
↓ 1 callers
Method
SendMessageContext
(ctx context.Context, msg *ProducerMessage)
sync_producer.go:166
↓ 1 callers
Method
SendMessages
SendMessages corresponds with the SendMessages method of sarama's SyncProducer implementation. You have to set expectations on the mock producer befor
mocks/sync_producer.go:106
↓ 1 callers
Method
SendMessagesContext
(ctx context.Context, msgs []*ProducerMessage)
sync_producer.go:200
↓ 1 callers
Method
SetDeletedGroups
(groups []string)
mockresponses.go:1281
↓ 1 callers
Method
SetDeletedOffset
(errorCode KError, topic string, partition int32, errorPartition KError)
mockresponses.go:1309
↓ 1 callers
Method
SetError
(group, topic string, partition int32, kerror KError)
mockresponses.go:563
↓ 1 callers
Method
SetGSSAPIHandler
(handler GSSApiHandlerFunc)
mockbroker.go:196
↓ 1 callers
Method
SetGenerationId
(id int32)
mockresponses.go:1373
↓ 1 callers
Method
SetLeaderId
(id string)
mockresponses.go:1383
↓ 1 callers
Method
SetMember
(id string, meta *ConsumerGroupMemberMetadata)
mockresponses.go:1393
↓ 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:1585
↓ 1 callers
Method
SetProducerID
(id int)
mockresponses.go:1580
↓ 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:518
↓ 1 callers
Method
StopGracefully
()
functional_consumer_group_java_interop_test.go:289
↓ 1 callers
Method
String
()
message.go:35
↓ 1 callers
Method
String
()
acl_types.go:38
↓ 1 callers
Method
String
()
acl_types.go:107
↓ 1 callers
Method
String
()
acl_types.go:157
↓ 1 callers
Method
String
()
acl_types.go:212
↓ 1 callers
Method
SupportedProtocols
()
rebalance_protocol.go:40
↓ 1 callers
Method
Swap
(i, j int)
utils.go:30
↓ 1 callers
Method
Swap
(i, j int)
balance_strategy.go:1217
↓ 1 callers
Method
Token
Token returns an access token. The implementation should ensure token reuse so that multiple calls at connect time do not create multiple tokens. The
broker.go:117
↓ 1 callers
Method
Topics
Topics returns the set of available topics as retrieved from the cluster metadata. This method is the same as Client.Topics(), and is provided for con
consumer.go:58
↓ 1 callers
Method
TxnOffsetCommit
TxnOffsetCommit sends a request to commit transaction offsets and returns a response or error
broker.go:922
↓ 1 callers
Method
TxnStatus
()
mocks/sync_producer.go:285
↓ 1 callers
Method
UnmarshalText
UnmarshalText returns a CompressionCodec from its string representation.
message.go:46
↓ 1 callers
Method
UnmarshalText
UnmarshalText takes a text representation of the operation and converts it to an AclOperation
acl_types.go:70
↓ 1 callers
Method
UnmarshalText
UnmarshalText takes a text representation of the permission type and converts it to an AclPermissionType
acl_types.go:127
↓ 1 callers
Method
UnmarshalText
UnmarshalText takes a text representation of the resource pattern type and converts it to an AclResourcePatternType
acl_types.go:233
← previous
next →
901–1,000 of 3,900, ranked by callers