Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/sarama
/ types & classes
Types & classes
511 in github.com/IBM/sarama
⨍
Functions
3,668
◇
Types & classes
511
↓ 113 callers
TypeAlias
StringEncoder
make strings and byte slices encodable for convenience so they can be used as keys and/or values in kafka messages StringEncoder implements the Encode
utils.go:76
↓ 15 callers
TypeAlias
ByteEncoder
ByteEncoder implements the Encoder interface for Go byte slices so that they can be used as the Key or Value in a ProducerMessage.
utils.go:88
↓ 15 callers
TypeAlias
ConfigurationError
ConfigurationError is the type of error returned from a constructor (e.g. NewClient, or NewConsumer) when the specified configuration is invalid.
errors.go:167
↓ 8 callers
TypeAlias
KError
KError is the type of error that can be returned directly by the Kafka broker. See https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Ka
errors.go:175
↓ 5 callers
TypeAlias
ConfigResourceType
ConfigResourceType is a type for resources that have configs.
config_resource_type.go:4
↓ 3 callers
TypeAlias
AclResourcePatternType
acl_types.go:15
↓ 3 callers
TypeAlias
ConfigSource
describe_configs_response.go:8
↓ 3 callers
TypeAlias
QuotaEntityType
quota_types.go:4
↓ 2 callers
TypeAlias
AclOperation
acl_types.go:9
↓ 2 callers
TypeAlias
AclPermissionType
acl_types.go:11
↓ 2 callers
TypeAlias
AclResourceType
acl_types.go:13
↓ 2 callers
TypeAlias
CompressionCodec
CompressionCodec represents the various compression codecs recognized by Kafka in messages.
message.go:33
↓ 2 callers
TypeAlias
IsolationLevel
fetch_request.go:106
↓ 2 callers
TypeAlias
RequiredAcks
RequiredAcks is used in Produce Requests to tell the broker how many replica acknowledgements it must see before responding. Any of the constants defi
produce_request.go:10
↓ 2 callers
TypeAlias
ScramMechanismType
describe_user_scram_credentials_response.go:5
↓ 2 callers
TypeAlias
int32Slice
make []int32 sortable so we can sort partition numbers
utils.go:20
↓ 2 callers
TypeAlias
recordsArray
record_batch.go:11
↓ 2 callers
FuncType
taggedFieldValue
taggedFieldValue adapts an encode closure for encode(); tagged-field values are always compact-encoded, so it reports itself as flexible
encoder_decoder.go:50
↓ 1 callers
TypeAlias
ConfigType
describe_configs_response.go:37
↓ 1 callers
TypeAlias
CoordinatorType
find_coordinator_request.go:3
↓ 1 callers
TypeAlias
ElectionType
election_type.go:3
↓ 1 callers
TypeAlias
IncrementalAlterConfigsOperation
incremental_alter_configs_request.go:3
↓ 1 callers
TypeAlias
QuotaMatchType
quota_types.go:6
↓ 1 callers
Interface
decoder
decoder is the interface that wraps the basic Decode method. Anything implementing Decoder can be extracted from bytes using Kafka's encoding rules.
encoder_decoder.go:60
↓ 1 callers
TypeAlias
faultyEncoder
mocks/sync_producer_test.go:348
↓ 1 callers
TypeAlias
fetchRecordsSet
fetch_response.go:55
↓ 1 callers
TypeAlias
flakyEncoder
async_producer_test.go:125
↓ 1 callers
Struct
handler
consumer_group_test.go:17
Struct
AbortedTransaction
fetch_response.go:16
Struct
AccessToken
AccessToken contains an access token used to authenticate a SASL/OAUTHBEARER client along with associated metadata.
broker.go:94
Interface
AccessTokenProvider
AccessTokenProvider is the interface that encapsulates how implementers can generate access tokens for Kafka broker authentication.
broker.go:106
Struct
Acl
Acl holds information about acl type
acl_bindings.go:50
Struct
AclCreation
AclCreation is a wrapper around Resource and Acl type
acl_create_request.go:90
Struct
AclCreationResponse
AclCreationResponse is an acl creation response type
acl_create_response.go:103
Struct
AclFilter
acl_filter.go:3
Struct
AddOffsetsToTxnRequest
AddOffsetsToTxnRequest adds offsets to a transaction request
add_offsets_to_txn_request.go:4
Struct
AddOffsetsToTxnResponse
AddOffsetsToTxnResponse is a response type for adding offsets to txns
add_offsets_to_txn_response.go:8
Struct
AddPartitionsToTxnRequest
AddPartitionsToTxnRequest is a add partition request
add_partitions_to_txn_request.go:4
Struct
AddPartitionsToTxnResponse
AddPartitionsToTxnResponse is a partition errors to transaction type
add_partitions_to_txn_response.go:8
Struct
AlterClientQuotasEntry
alter_client_quotas_request.go:24
Struct
AlterClientQuotasEntryResponse
alter_client_quotas_response.go:26
Struct
AlterClientQuotasRequest
AlterClientQuotas Request (Version: 0) => [entries] validate_only entries => [entity] [ops] entity => entity_type entity_name entity_type => STRING en
alter_client_quotas_request.go:14
Struct
AlterClientQuotasResponse
AlterClientQuotas Response (Version: 0) => throttle_time_ms [entries] throttle_time_ms => INT32 entries => error_code error_message [entity] error_cod
alter_client_quotas_response.go:16
Struct
AlterConfigError
alter_configs_response.go:19
Struct
AlterConfigsRequest
AlterConfigsRequest is an alter config request type
alter_configs_request.go:4
Struct
AlterConfigsResource
AlterConfigsResource is an alter config resource type
alter_configs_request.go:15
Struct
AlterConfigsResourceResponse
AlterConfigsResourceResponse is a response type for alter config resource
alter_configs_response.go:37
Struct
AlterConfigsResponse
AlterConfigsResponse is a response type for alter config
alter_configs_response.go:9
Struct
AlterConsumerGroupOffsetsOptions
AlterConsumerGroupOffsetsOptions configures how offsets are committed. It is currently empty and reserved for future Kafka protocol options
admin_offsets.go:35
Struct
AlterPartitionReassignmentsRequest
alter_partition_reassignments_request.go:26
Struct
AlterPartitionReassignmentsResponse
alter_partition_reassignments_response.go:34
Struct
AlterUserScramCredentialsDelete
alter_user_scram_credentials_request.go:17
Struct
AlterUserScramCredentialsRequest
alter_user_scram_credentials_request.go:3
Struct
AlterUserScramCredentialsResponse
alter_user_scram_credentials_response.go:5
Struct
AlterUserScramCredentialsResult
alter_user_scram_credentials_response.go:17
Struct
AlterUserScramCredentialsUpsert
alter_user_scram_credentials_request.go:22
Struct
ApiVersionsRequest
api_versions_request.go:5
Struct
ApiVersionsResponse
api_versions_response.go:132
Struct
ApiVersionsResponseKey
ApiVersionsResponseKey contains the APIs supported by the broker.
api_versions_response.go:8
Interface
AsyncProducer
AsyncProducer publishes Kafka messages using a non-blocking API. It routes messages to the correct broker for the provided topic-partition, refreshing
async_producer.go:38
Struct
AsyncProducer
AsyncProducer implements sarama's Producer interface for testing purposes. Before you can send messages to it's Input channel, you have to set expecta
mocks/async_producer.go:16
TypeAlias
Attributes
internal/toxiproxy/proxy.go:19
Interface
BalanceStrategy
-------------------------------------------------------------------- BalanceStrategy is used to balance topics and partitions across members of a cons
balance_strategy.go:50
TypeAlias
BalanceStrategyPlan
BalanceStrategyPlan is the results of any BalanceStrategy.Plan attempt. It contains an allocation of topic/partitions by memberID in the form of a `me
balance_strategy.go:33
Struct
Broker
Broker represents a single Kafka broker connection. All operations on this object are entirely concurrency-safe.
broker.go:23
FuncType
BuildSpnFunc
func(serviceName, host string) string
gssapi_kerberos.go:62
Interface
Client
Client is a generic Kafka client. It manages connections to one or more Kafka brokers. You MUST call Close() on a client to avoid leaks, it will not b
client.go:24
Struct
Client
internal/toxiproxy/client.go:12
Struct
ClientQuotasOp
alter_client_quotas_request.go:29
Interface
ClusterAdmin
ClusterAdmin is the administrative client for Kafka, which supports managing and inspecting topics, brokers, configurations and ACLs. The minimum brok
admin.go:19
Struct
Config
Config is used to pass multiple configuration options to Sarama's constructors.
config.go:26
Struct
ConfigEntry
describe_configs_response.go:87
Struct
ConfigResource
describe_configs_request.go:14
Struct
ConfigResourceResult
ConfigResourceResult is the described configuration for a single resource.
admin.go:840
Struct
ConfigSynonym
describe_configs_response.go:99
Interface
Consumer
Consumer manages PartitionConsumers which process Kafka messages from brokers. You MUST call Close() on a consumer to avoid leaks, it will not be garb
consumer.go:54
Struct
Consumer
Consumer implements sarama's Consumer interface for testing purposes. Before you can start consuming from this consumer, you have to register topic/pa
mocks/consumer.go:13
Struct
Consumer
Consumer represents a Sarama consumer group consumer
examples/consumergroup/main.go:164
Struct
Consumer
Consumer is a minimal ConsumerGroupHandler that also tracks an in-flight counter so it can report a meaningful load sample.
examples/consumer_load_aware/main.go:107
Struct
Consumer
Consumer represents a Sarama consumer group consumer
examples/exactly_once/main.go:192
Struct
ConsumerError
ConsumerError is what is provided to the user when an error occurs. It wraps an error and includes the topic and partition.
consumer.go:28
TypeAlias
ConsumerErrors
ConsumerErrors is a type that wraps a batch of errors and implements the Error interface. It can be returned from the PartitionConsumer's Close method
consumer.go:45
Interface
ConsumerGroup
ConsumerGroup is responsible for dividing up processing of topics and partitions over a collection of processes (the members of the consumer group).
consumer_group.go:34
Interface
ConsumerGroupClaim
ConsumerGroupClaim processes Kafka messages from a given topic and partition within a consumer group.
consumer_group_session.go:427
Interface
ConsumerGroupHandler
-------------------------------------------------------------------- ConsumerGroupHandler instances are used to handle individual topic/partition clai
consumer_group_session.go:410
Struct
ConsumerGroupMemberAssignment
ConsumerGroupMemberAssignment holds the member assignment for a consume group https://github.com/apache/kafka/blob/trunk/clients/src/main/resources/co
consumer_group_members.go:146
Struct
ConsumerGroupMemberMetadata
ConsumerGroupMemberMetadata holds the metadata for consumer group https://github.com/apache/kafka/blob/trunk/clients/src/main/resources/common/message
consumer_group_members.go:11
Struct
ConsumerGroupMetadata
ConsumerGroupMetadata identifies the consumer group, and optionally the group member, on whose behalf offsets are committed within a transaction. Whe
consumer_group_metadata.go:11
Interface
ConsumerGroupSession
ConsumerGroupSession represents a consumer group member session.
consumer_group_session.go:11
Interface
ConsumerInterceptor
ConsumerInterceptor allows you to intercept (and possibly mutate) the records received by the consumer before they are sent to the messages channel. h
interceptors.go:17
Struct
ConsumerMessage
ConsumerMessage encapsulates a Kafka message returned by the consumer.
consumer.go:15
Struct
ConsumerMetadataRequest
ConsumerMetadataRequest is used for metadata requests
consumer_metadata_request.go:4
Struct
ConsumerMetadataResponse
ConsumerMetadataResponse holds the response for a consumer group meta data requests
consumer_metadata_response.go:9
Struct
ControlRecord
Control records are returned as a record by fetchRequest However unlike "normal" records, they mean nothing application wise. They only serve internal
control_record.go:18
TypeAlias
ControlRecordType
ControlRecordType ...
control_record.go:4
Struct
CreatableTopicConfigs
CreatableTopicConfigs contains a Configuration of the topic.
create_topics_response.go:304
Struct
CreatableTopicResult
CreatableTopicResult struct {
create_topics_response.go:213
Struct
CreateAclsRequest
CreateAclsRequest is an acl creation request
acl_create_request.go:4
Struct
CreateAclsResponse
CreateAclsResponse is a an acl response creation type
acl_create_response.go:6
Struct
CreatePartitionsRequest
create_partitions_request.go:5
next →
1–100 of 511, ranked by callers