| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Kafka.Protocol
Documentation
Constructors
| Request (CorrelationId, ClientId, RequestMessage) |
Instances
| Eq Request # | |
| Show Request # | |
| Generic Request # | |
| Serializable Request # | |
Defined in Network.Kafka.Protocol | |
| type Rep Request # | |
Defined in Network.Kafka.Protocol type Rep Request = D1 (MetaData "Request" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "Request" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (CorrelationId, ClientId, RequestMessage)))) | |
data KafkaError #
Constructors
| NoError |
|
| Unknown |
|
| OffsetOutOfRange |
|
| InvalidMessage |
|
| UnknownTopicOrPartition |
|
| InvalidMessageSize |
|
| LeaderNotAvailable |
|
| NotLeaderForPartition |
|
| RequestTimedOut |
|
| BrokerNotAvailable |
|
| ReplicaNotAvailable |
|
| MessageSizeTooLarge |
|
| StaleControllerEpochCode |
|
| OffsetMetadataTooLargeCode |
|
| OffsetsLoadInProgressCode |
|
| ConsumerCoordinatorNotAvailableCode |
|
| NotCoordinatorForConsumerCode |
|
Instances
Constructors
| Metadata KafkaString |
Instances
| Eq Metadata # | |
| Show Metadata # | |
| IsString Metadata # | |
Defined in Network.Kafka.Protocol Methods fromString :: String -> Metadata # | |
| Generic Metadata # | |
| Deserializable Metadata # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Metadata # | |
| Serializable Metadata # | |
Defined in Network.Kafka.Protocol | |
| type Rep Metadata # | |
Defined in Network.Kafka.Protocol type Rep Metadata = D1 (MetaData "Metadata" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "Metadata" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KafkaString))) | |
newtype ConsumerGroup #
Constructors
| ConsumerGroup KafkaString |
Instances
newtype OffsetFetchRequest #
Constructors
| OffsetFetchReq (ConsumerGroup, [(TopicName, [Partition])]) |
Instances
newtype OffsetCommitRequest #
Constructors
| OffsetCommitReq (ConsumerGroup, [(TopicName, [(Partition, Offset, Time, Metadata)])]) |
Instances
newtype GroupCoordinatorRequest #
Constructors
| GroupCoordinatorReq ConsumerGroup |
Instances
data ResponseMessage #
Constructors
Instances
Constructors
| Value | |
Fields | |
Instances
| Eq Value # | |
| Show Value # | |
| Generic Value # | |
| Deserializable Value # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Value # | |
| Serializable Value # | |
Defined in Network.Kafka.Protocol | |
| type Rep Value # | |
Defined in Network.Kafka.Protocol type Rep Value = D1 (MetaData "Value" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "Value" PrefixI True) (S1 (MetaSel (Just "_valueBytes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe KafkaBytes)))) | |
Constructors
| Key | |
Fields | |
Instances
| Eq Key # | |
| Show Key # | |
| Generic Key # | |
| Deserializable Key # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Key # | |
| Serializable Key # | |
Defined in Network.Kafka.Protocol | |
| type Rep Key # | |
Defined in Network.Kafka.Protocol type Rep Key = D1 (MetaData "Key" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "Key" PrefixI True) (S1 (MetaSel (Just "_keyBytes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe KafkaBytes)))) | |
data Attributes #
Constructors
| Attributes | |
Fields | |
Instances
| Eq Attributes # | |
Defined in Network.Kafka.Protocol | |
| Show Attributes # | |
Defined in Network.Kafka.Protocol Methods showsPrec :: Int -> Attributes -> ShowS # show :: Attributes -> String # showList :: [Attributes] -> ShowS # | |
| Generic Attributes # | |
Defined in Network.Kafka.Protocol Associated Types type Rep Attributes :: * -> * # | |
| Deserializable Attributes # | |
Defined in Network.Kafka.Protocol Methods | |
| Serializable Attributes # | |
Defined in Network.Kafka.Protocol Methods serialize :: Attributes -> Put # | |
| type Rep Attributes # | |
Defined in Network.Kafka.Protocol type Rep Attributes = D1 (MetaData "Attributes" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" False) (C1 (MetaCons "Attributes" PrefixI True) (S1 (MetaSel (Just "_compressionCodec") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CompressionCodec))) | |
Instances
Instances
| Enum Crc # | |
| Eq Crc # | |
| Integral Crc # | |
| Num Crc # | |
| Ord Crc # | |
| Real Crc # | |
Defined in Network.Kafka.Protocol Methods toRational :: Crc -> Rational # | |
| Show Crc # | |
| Generic Crc # | |
| Deserializable Crc # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Crc # | |
| Serializable Crc # | |
Defined in Network.Kafka.Protocol | |
| type Rep Crc # | |
Defined in Network.Kafka.Protocol | |
data CompressionCodec #
Constructors
| NoCompression | |
| Gzip |
Instances
| Eq CompressionCodec # | |
Defined in Network.Kafka.Protocol Methods (==) :: CompressionCodec -> CompressionCodec -> Bool # (/=) :: CompressionCodec -> CompressionCodec -> Bool # | |
| Show CompressionCodec # | |
Defined in Network.Kafka.Protocol Methods showsPrec :: Int -> CompressionCodec -> ShowS # show :: CompressionCodec -> String # showList :: [CompressionCodec] -> ShowS # | |
| Generic CompressionCodec # | |
Defined in Network.Kafka.Protocol Associated Types type Rep CompressionCodec :: * -> * # Methods from :: CompressionCodec -> Rep CompressionCodec x # to :: Rep CompressionCodec x -> CompressionCodec # | |
| type Rep CompressionCodec # | |
Constructors
| Message | |
Fields
| |
Instances
| Eq Message # | |
| Show Message # | |
| Generic Message # | |
| Deserializable Message # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Message # | |
| Serializable Message # | |
Defined in Network.Kafka.Protocol | |
| type Rep Message # | |
Defined in Network.Kafka.Protocol | |
Instances
| Enum Offset # | |
Defined in Network.Kafka.Protocol | |
| Eq Offset # | |
| Integral Offset # | |
Defined in Network.Kafka.Protocol | |
| Num Offset # | |
| Ord Offset # | |
| Real Offset # | |
Defined in Network.Kafka.Protocol Methods toRational :: Offset -> Rational # | |
| Show Offset # | |
| Generic Offset # | |
| Deserializable Offset # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Offset # | |
| Serializable Offset # | |
Defined in Network.Kafka.Protocol | |
| type Rep Offset # | |
Defined in Network.Kafka.Protocol | |
data MessageSetMember #
Constructors
| MessageSetMember | |
Fields
| |
Instances
data MessageSet #
Constructors
| MessageSet | |
Fields | |
Instances
| Eq MessageSet # | |
Defined in Network.Kafka.Protocol | |
| Show MessageSet # | |
Defined in Network.Kafka.Protocol Methods showsPrec :: Int -> MessageSet -> ShowS # show :: MessageSet -> String # showList :: [MessageSet] -> ShowS # | |
| Generic MessageSet # | |
Defined in Network.Kafka.Protocol Associated Types type Rep MessageSet :: * -> * # | |
| Deserializable MessageSet # | |
Defined in Network.Kafka.Protocol Methods | |
| Serializable MessageSet # | |
Defined in Network.Kafka.Protocol Methods serialize :: MessageSet -> Put # | |
| type Rep MessageSet # | |
Defined in Network.Kafka.Protocol type Rep MessageSet = D1 (MetaData "MessageSet" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" False) (C1 (MetaCons "MessageSet" PrefixI True) (S1 (MetaSel (Just "_codec") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CompressionCodec) :*: S1 (MetaSel (Just "_messageSetMembers") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [MessageSetMember]))) | |
Instances
Instances
| Enum Timeout # | |
| Eq Timeout # | |
| Integral Timeout # | |
Defined in Network.Kafka.Protocol | |
| Num Timeout # | |
| Ord Timeout # | |
Defined in Network.Kafka.Protocol | |
| Real Timeout # | |
Defined in Network.Kafka.Protocol Methods toRational :: Timeout -> Rational # | |
| Show Timeout # | |
| Generic Timeout # | |
| Deserializable Timeout # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Timeout # | |
| Serializable Timeout # | |
Defined in Network.Kafka.Protocol | |
| type Rep Timeout # | |
Defined in Network.Kafka.Protocol | |
newtype RequiredAcks #
Constructors
| RequiredAcks Int16 |
Instances
newtype ProduceRequest #
Constructors
| ProduceReq (RequiredAcks, Timeout, [(TopicName, [(Partition, MessageSet)])]) |
Instances
Instances
| Enum MaxBytes # | |
Defined in Network.Kafka.Protocol | |
| Eq MaxBytes # | |
| Integral MaxBytes # | |
Defined in Network.Kafka.Protocol | |
| Num MaxBytes # | |
| Ord MaxBytes # | |
Defined in Network.Kafka.Protocol | |
| Real MaxBytes # | |
Defined in Network.Kafka.Protocol Methods toRational :: MaxBytes -> Rational # | |
| Show MaxBytes # | |
| Generic MaxBytes # | |
| Deserializable MaxBytes # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get MaxBytes # | |
| Serializable MaxBytes # | |
Defined in Network.Kafka.Protocol | |
| type Rep MaxBytes # | |
Defined in Network.Kafka.Protocol | |
Instances
| Enum MinBytes # | |
Defined in Network.Kafka.Protocol | |
| Eq MinBytes # | |
| Integral MinBytes # | |
Defined in Network.Kafka.Protocol | |
| Num MinBytes # | |
| Ord MinBytes # | |
Defined in Network.Kafka.Protocol | |
| Real MinBytes # | |
Defined in Network.Kafka.Protocol Methods toRational :: MinBytes -> Rational # | |
| Show MinBytes # | |
| Generic MinBytes # | |
| Deserializable MinBytes # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get MinBytes # | |
| Serializable MinBytes # | |
Defined in Network.Kafka.Protocol | |
| type Rep MinBytes # | |
Defined in Network.Kafka.Protocol | |
newtype MaxWaitTime #
Constructors
| MaxWaitTime Int32 |
Instances
Instances
newtype FetchRequest #
Constructors
| FetchReq (ReplicaId, MaxWaitTime, MinBytes, [(TopicName, [(Partition, Offset, MaxBytes)])]) |
Instances
| Eq FetchRequest # | |
Defined in Network.Kafka.Protocol | |
| Show FetchRequest # | |
Defined in Network.Kafka.Protocol Methods showsPrec :: Int -> FetchRequest -> ShowS # show :: FetchRequest -> String # showList :: [FetchRequest] -> ShowS # | |
| Generic FetchRequest # | |
Defined in Network.Kafka.Protocol Associated Types type Rep FetchRequest :: * -> * # | |
| Deserializable FetchRequest # | |
Defined in Network.Kafka.Protocol Methods | |
| Serializable FetchRequest # | |
Defined in Network.Kafka.Protocol Methods serialize :: FetchRequest -> Put # | |
| type Rep FetchRequest # | |
Defined in Network.Kafka.Protocol type Rep FetchRequest = D1 (MetaData "FetchRequest" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "FetchReq" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (ReplicaId, MaxWaitTime, MinBytes, [(TopicName, [(Partition, Offset, MaxBytes)])])))) | |
newtype MaxNumberOfOffsets #
Constructors
| MaxNumberOfOffsets Int32 |
Instances
Instances
| Bounded Time # | |
| Enum Time # | |
| Eq Time # | |
| Integral Time # | |
| Num Time # | |
| Ord Time # | |
| Real Time # | |
Defined in Network.Kafka.Protocol Methods toRational :: Time -> Rational # | |
| Show Time # | |
| Generic Time # | |
| Serializable Time # | |
Defined in Network.Kafka.Protocol | |
| type Rep Time # | |
Defined in Network.Kafka.Protocol | |
newtype OffsetRequest #
Instances
| Eq OffsetRequest # | |
Defined in Network.Kafka.Protocol Methods (==) :: OffsetRequest -> OffsetRequest -> Bool # (/=) :: OffsetRequest -> OffsetRequest -> Bool # | |
| Show OffsetRequest # | |
Defined in Network.Kafka.Protocol Methods showsPrec :: Int -> OffsetRequest -> ShowS # show :: OffsetRequest -> String # showList :: [OffsetRequest] -> ShowS # | |
| Generic OffsetRequest # | |
Defined in Network.Kafka.Protocol Associated Types type Rep OffsetRequest :: * -> * # | |
| Serializable OffsetRequest # | |
Defined in Network.Kafka.Protocol Methods serialize :: OffsetRequest -> Put # | |
| type Rep OffsetRequest # | |
Defined in Network.Kafka.Protocol type Rep OffsetRequest = D1 (MetaData "OffsetRequest" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "OffsetReq" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (ReplicaId, [(TopicName, [(Partition, Time, MaxNumberOfOffsets)])])))) | |
newtype OffsetFetchResponse #
Constructors
| OffsetFetchResp [(TopicName, [(Partition, Offset, Metadata, KafkaError)])] |
Instances
newtype OffsetCommitResponse #
Constructors
| OffsetCommitResp [(TopicName, [(Partition, KafkaError)])] |
Instances
Instances
| Eq Replicas # | |
| Show Replicas # | |
| Generic Replicas # | |
| Deserializable Replicas # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Replicas # | |
| Serializable Replicas # | |
Defined in Network.Kafka.Protocol | |
| type Rep Replicas # | |
Defined in Network.Kafka.Protocol | |
newtype PartitionMetadata #
Constructors
| PartitionMetadata | |
Fields | |
Instances
newtype TopicMetadata #
Constructors
| TopicMetadata | |
Fields | |
Instances
| Eq TopicMetadata # | |
Defined in Network.Kafka.Protocol Methods (==) :: TopicMetadata -> TopicMetadata -> Bool # (/=) :: TopicMetadata -> TopicMetadata -> Bool # | |
| Show TopicMetadata # | |
Defined in Network.Kafka.Protocol Methods showsPrec :: Int -> TopicMetadata -> ShowS # show :: TopicMetadata -> String # showList :: [TopicMetadata] -> ShowS # | |
| Generic TopicMetadata # | |
Defined in Network.Kafka.Protocol Associated Types type Rep TopicMetadata :: * -> * # | |
| Deserializable TopicMetadata # | |
Defined in Network.Kafka.Protocol Methods | |
| type Rep TopicMetadata # | |
Defined in Network.Kafka.Protocol type Rep TopicMetadata = D1 (MetaData "TopicMetadata" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "TopicMetadata" PrefixI True) (S1 (MetaSel (Just "_topicMetadataFields") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (KafkaError, TopicName, [PartitionMetadata])))) | |
Instances
| Enum Port # | |
| Eq Port # | |
| Integral Port # | |
| Num Port # | |
| Ord Port # | |
| Real Port # | |
Defined in Network.Kafka.Protocol Methods toRational :: Port -> Rational # | |
| Show Port # | |
| Generic Port # | |
| Deserializable Port # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Port # | |
| type Rep Port # | |
Defined in Network.Kafka.Protocol | |
Constructors
| Host | |
Fields | |
Instances
| Eq Host # | |
| Ord Host # | |
| Show Host # | |
| IsString Host # | |
Defined in Network.Kafka.Protocol Methods fromString :: String -> Host # | |
| Generic Host # | |
| Deserializable Host # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get Host # | |
| type Rep Host # | |
Defined in Network.Kafka.Protocol type Rep Host = D1 (MetaData "Host" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "Host" PrefixI True) (S1 (MetaSel (Just "_hostKString") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KafkaString))) | |
Instances
| Enum NodeId # | |
Defined in Network.Kafka.Protocol | |
| Eq NodeId # | |
| Integral NodeId # | |
Defined in Network.Kafka.Protocol | |
| Num NodeId # | |
| Ord NodeId # | |
| Real NodeId # | |
Defined in Network.Kafka.Protocol Methods toRational :: NodeId -> Rational # | |
| Show NodeId # | |
| Generic NodeId # | |
| Deserializable NodeId # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get NodeId # | |
| type Rep NodeId # | |
Defined in Network.Kafka.Protocol | |
Constructors
| Broker | |
Fields
| |
newtype MetadataResponse #
Constructors
| MetadataResp | |
Fields
| |
Instances
newtype FetchResponse #
Constructors
| FetchResp | |
Fields
| |
Instances
newtype PartitionOffsets #
Constructors
| PartitionOffsets | |
Fields
| |
Instances
newtype OffsetResponse #
Constructors
| OffsetResp | |
Fields
| |
Instances
| Eq OffsetResponse # | |
Defined in Network.Kafka.Protocol Methods (==) :: OffsetResponse -> OffsetResponse -> Bool # (/=) :: OffsetResponse -> OffsetResponse -> Bool # | |
| Show OffsetResponse # | |
Defined in Network.Kafka.Protocol Methods showsPrec :: Int -> OffsetResponse -> ShowS # show :: OffsetResponse -> String # showList :: [OffsetResponse] -> ShowS # | |
| Generic OffsetResponse # | |
Defined in Network.Kafka.Protocol Associated Types type Rep OffsetResponse :: * -> * # Methods from :: OffsetResponse -> Rep OffsetResponse x # to :: Rep OffsetResponse x -> OffsetResponse # | |
| Deserializable OffsetResponse # | |
Defined in Network.Kafka.Protocol Methods | |
| type Rep OffsetResponse # | |
Defined in Network.Kafka.Protocol type Rep OffsetResponse = D1 (MetaData "OffsetResponse" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "OffsetResp" PrefixI True) (S1 (MetaSel (Just "_offsetResponseFields") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [(TopicName, [PartitionOffsets])]))) | |
newtype ProduceResponse #
Constructors
| ProduceResp | |
Fields
| |
Instances
newtype KafkaString #
Constructors
| KString | |
Fields | |
Instances
newtype KafkaBytes #
Constructors
| KBytes | |
Fields | |
Instances
| Eq KafkaBytes # | |
Defined in Network.Kafka.Protocol | |
| Show KafkaBytes # | |
Defined in Network.Kafka.Protocol Methods showsPrec :: Int -> KafkaBytes -> ShowS # show :: KafkaBytes -> String # showList :: [KafkaBytes] -> ShowS # | |
| IsString KafkaBytes # | |
Defined in Network.Kafka.Protocol Methods fromString :: String -> KafkaBytes # | |
| Generic KafkaBytes # | |
Defined in Network.Kafka.Protocol Associated Types type Rep KafkaBytes :: * -> * # | |
| Deserializable KafkaBytes # | |
Defined in Network.Kafka.Protocol Methods | |
| Serializable KafkaBytes # | |
Defined in Network.Kafka.Protocol Methods serialize :: KafkaBytes -> Put # | |
| type Rep KafkaBytes # | |
Defined in Network.Kafka.Protocol type Rep KafkaBytes = D1 (MetaData "KafkaBytes" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "KBytes" PrefixI True) (S1 (MetaSel (Just "_kafkaByteString") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) | |
Constructors
| TName | |
Fields | |
Instances
| Eq TopicName # | |
| Ord TopicName # | |
| Show TopicName # | |
| IsString TopicName # | |
Defined in Network.Kafka.Protocol Methods fromString :: String -> TopicName # | |
| Generic TopicName # | |
| Deserializable TopicName # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get TopicName # | |
| Serializable TopicName # | |
Defined in Network.Kafka.Protocol | |
| type Rep TopicName # | |
Defined in Network.Kafka.Protocol type Rep TopicName = D1 (MetaData "TopicName" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "TName" PrefixI True) (S1 (MetaSel (Just "_tName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KafkaString))) | |
newtype MetadataRequest #
Constructors
| MetadataReq [TopicName] |
Instances
data RequestMessage #
Constructors
Instances
Constructors
| ClientId KafkaString |
Instances
| Eq ClientId # | |
| Show ClientId # | |
| IsString ClientId # | |
Defined in Network.Kafka.Protocol Methods fromString :: String -> ClientId # | |
| Generic ClientId # | |
| Deserializable ClientId # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get ClientId # | |
| Serializable ClientId # | |
Defined in Network.Kafka.Protocol | |
| type Rep ClientId # | |
Defined in Network.Kafka.Protocol type Rep ClientId = D1 (MetaData "ClientId" "Network.Kafka.Protocol" "milena-0.5.2.3-EPtlCrT9mL2wAhWEIFpL" True) (C1 (MetaCons "ClientId" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 KafkaString))) | |
newtype CorrelationId #
Constructors
| CorrelationId Int32 |
Instances
newtype ApiVersion #
Constructors
| ApiVersion Int16 |
Instances
Instances
| Enum ApiKey # | |
Defined in Network.Kafka.Protocol | |
| Eq ApiKey # | |
| Integral ApiKey # | |
Defined in Network.Kafka.Protocol | |
| Num ApiKey # | |
| Ord ApiKey # | |
| Real ApiKey # | |
Defined in Network.Kafka.Protocol Methods toRational :: ApiKey -> Rational # | |
| Show ApiKey # | |
| Generic ApiKey # | |
| Deserializable ApiKey # | |
Defined in Network.Kafka.Protocol Methods deserialize :: Get ApiKey # | |
| Serializable ApiKey # | |
Defined in Network.Kafka.Protocol | |
| type Rep ApiKey # | |
Defined in Network.Kafka.Protocol | |
newtype GroupCoordinatorResponse #
Constructors
| GroupCoordinatorResp (KafkaError, Broker) |
Instances
class Deserializable a where #
Minimal complete definition
Methods
deserialize :: Get a #
Instances
class Serializable a where #
Minimal complete definition
Instances
Constructors
| MetadataRR :: MonadIO m => MetadataRequest -> ReqResp (m MetadataResponse) | |
| ProduceRR :: MonadIO m => ProduceRequest -> ReqResp (m ProduceResponse) | |
| FetchRR :: MonadIO m => FetchRequest -> ReqResp (m FetchResponse) | |
| OffsetRR :: MonadIO m => OffsetRequest -> ReqResp (m OffsetResponse) |
doRequest' :: (Deserializable a, MonadIO m) => CorrelationId -> Handle -> Request -> m (Either String a) #
doRequest :: MonadIO m => ClientId -> CorrelationId -> Handle -> ReqResp (m a) -> m (Either String a) #
errorKafka :: KafkaError -> Int16 #
requestBytes :: Request -> ByteString #
apiVersion :: RequestMessage -> ApiVersion #
apiKey :: RequestMessage -> ApiKey #
produceResponseFields :: Iso' ProduceResponse [(TopicName, [(Partition, KafkaError, Offset)])] #
fetchResponseFields :: Iso' FetchResponse [(TopicName, [(Partition, KafkaError, Offset, MessageSet)])] #
messageFields :: Iso' Message (Crc, MagicByte, Attributes, Key, Value) #
valueBytes :: Iso' Value (Maybe KafkaBytes) #
brokerNode :: Lens' Broker NodeId #
brokerHost :: Lens' Broker Host #
brokerPort :: Lens' Broker Port #
fetchResponseByTopic :: TopicName -> Fold FetchResponse (Partition, KafkaError, Offset, MessageSet) #
messageSetByPartition :: Partition -> Fold (Partition, KafkaError, Offset, MessageSet) MessageSetMember #
messageKey :: Lens' Message Key #
findPartitionMetadata :: Applicative f => TopicName -> LensLike' f TopicMetadata [PartitionMetadata] #
hostString :: Lens' Host String #