milena-0.5.2.2: A Kafka client for Haskell.

Safe HaskellNone
LanguageHaskell2010

Network.Kafka.Protocol

Contents

Synopsis

Documentation

class Serializable a where #

Minimal complete definition

serialize

Methods

serialize :: a -> Put #

Instances

Serializable Int8 # 

Methods

serialize :: Int8 -> Put #

Serializable Int16 # 

Methods

serialize :: Int16 -> Put #

Serializable Int32 # 

Methods

serialize :: Int32 -> Put #

Serializable Int64 # 

Methods

serialize :: Int64 -> Put #

Serializable Request # 

Methods

serialize :: Request -> Put #

Serializable KafkaError # 

Methods

serialize :: KafkaError -> Put #

Serializable Metadata # 

Methods

serialize :: Metadata -> Put #

Serializable ConsumerGroup # 
Serializable OffsetFetchRequest # 
Serializable OffsetCommitRequest # 
Serializable GroupCoordinatorRequest # 
Serializable Value # 

Methods

serialize :: Value -> Put #

Serializable Key # 

Methods

serialize :: Key -> Put #

Serializable Attributes # 

Methods

serialize :: Attributes -> Put #

Serializable MagicByte # 

Methods

serialize :: MagicByte -> Put #

Serializable Crc # 

Methods

serialize :: Crc -> Put #

Serializable Message # 

Methods

serialize :: Message -> Put #

Serializable Offset # 

Methods

serialize :: Offset -> Put #

Serializable MessageSetMember # 
Serializable MessageSet # 

Methods

serialize :: MessageSet -> Put #

Serializable Partition # 

Methods

serialize :: Partition -> Put #

Serializable Timeout # 

Methods

serialize :: Timeout -> Put #

Serializable RequiredAcks # 
Serializable ProduceRequest # 
Serializable MaxBytes # 

Methods

serialize :: MaxBytes -> Put #

Serializable MinBytes # 

Methods

serialize :: MinBytes -> Put #

Serializable MaxWaitTime # 

Methods

serialize :: MaxWaitTime -> Put #

Serializable ReplicaId # 

Methods

serialize :: ReplicaId -> Put #

Serializable FetchRequest # 
Serializable MaxNumberOfOffsets # 
Serializable Time # 

Methods

serialize :: Time -> Put #

Serializable OffsetRequest # 
Serializable Replicas # 

Methods

serialize :: Replicas -> Put #

Serializable FetchResponse # 
Serializable ProduceResponse # 
Serializable KafkaString # 

Methods

serialize :: KafkaString -> Put #

Serializable KafkaBytes # 

Methods

serialize :: KafkaBytes -> Put #

Serializable TopicName # 

Methods

serialize :: TopicName -> Put #

Serializable MetadataRequest # 
Serializable RequestMessage # 
Serializable ClientId # 

Methods

serialize :: ClientId -> Put #

Serializable CorrelationId # 
Serializable ApiVersion # 

Methods

serialize :: ApiVersion -> Put #

Serializable ApiKey # 

Methods

serialize :: ApiKey -> Put #

Serializable a => Serializable [a] # 

Methods

serialize :: [a] -> Put #

(Serializable a, Serializable b) => Serializable (a, b) # 

Methods

serialize :: (a, b) -> Put #

(Serializable a, Serializable b, Serializable c) => Serializable (a, b, c) # 

Methods

serialize :: (a, b, c) -> Put #

(Serializable a, Serializable b, Serializable c, Serializable d) => Serializable (a, b, c, d) # 

Methods

serialize :: (a, b, c, d) -> Put #

(Serializable a, Serializable b, Serializable c, Serializable d, Serializable e) => Serializable (a, b, c, d, e) # 

Methods

serialize :: (a, b, c, d, e) -> Put #

class Deserializable a where #

Minimal complete definition

deserialize

Methods

deserialize :: Get a #

Instances

Deserializable Int8 # 

Methods

deserialize :: Get Int8 #

Deserializable Int16 # 
Deserializable Int32 # 
Deserializable Int64 # 
Deserializable KafkaError # 
Deserializable Metadata # 
Deserializable ConsumerGroup # 
Deserializable Value # 
Deserializable Key # 

Methods

deserialize :: Get Key #

Deserializable Attributes # 
Deserializable MagicByte # 
Deserializable Crc # 

Methods

deserialize :: Get Crc #

Deserializable Message # 
Deserializable Offset # 
Deserializable MessageSetMember # 
Deserializable MessageSet # 
Deserializable Partition # 
Deserializable Timeout # 
Deserializable RequiredAcks # 
Deserializable MaxBytes # 
Deserializable MinBytes # 
Deserializable MaxWaitTime # 
Deserializable ReplicaId # 
Deserializable FetchRequest # 
Deserializable OffsetFetchResponse # 
Deserializable OffsetCommitResponse # 
Deserializable Isr # 

Methods

deserialize :: Get Isr #

Deserializable Replicas # 
Deserializable Leader # 
Deserializable PartitionMetadata # 
Deserializable TopicMetadata # 
Deserializable Port # 

Methods

deserialize :: Get Port #

Deserializable Host # 

Methods

deserialize :: Get Host #

Deserializable NodeId # 
Deserializable Broker # 
Deserializable MetadataResponse # 
Deserializable FetchResponse # 
Deserializable PartitionOffsets # 
Deserializable OffsetResponse # 
Deserializable ProduceResponse # 
Deserializable KafkaString # 
Deserializable KafkaBytes # 
Deserializable TopicName # 
Deserializable MetadataRequest # 
Deserializable ClientId # 
Deserializable CorrelationId # 
Deserializable ApiVersion # 
Deserializable ApiKey # 
Deserializable GroupCoordinatorResponse # 
Deserializable a => Deserializable [a] # 

Methods

deserialize :: Get [a] #

(Deserializable a, Deserializable b) => Deserializable (a, b) # 

Methods

deserialize :: Get (a, b) #

(Deserializable a, Deserializable b, Deserializable c) => Deserializable (a, b, c) # 

Methods

deserialize :: Get (a, b, c) #

(Deserializable a, Deserializable b, Deserializable c, Deserializable d) => Deserializable (a, b, c, d) # 

Methods

deserialize :: Get (a, b, c, d) #

(Deserializable a, Deserializable b, Deserializable c, Deserializable d, Deserializable e) => Deserializable (a, b, c, d, e) # 

Methods

deserialize :: Get (a, b, c, d, e) #

newtype ApiKey #

Constructors

ApiKey Int16 

Instances

Enum ApiKey # 
Eq ApiKey # 

Methods

(==) :: ApiKey -> ApiKey -> Bool #

(/=) :: ApiKey -> ApiKey -> Bool #

Integral ApiKey # 
Num ApiKey # 
Ord ApiKey # 
Real ApiKey # 
Show ApiKey # 
Generic ApiKey # 

Associated Types

type Rep ApiKey :: * -> * #

Methods

from :: ApiKey -> Rep ApiKey x #

to :: Rep ApiKey x -> ApiKey #

Deserializable ApiKey # 
Serializable ApiKey # 

Methods

serialize :: ApiKey -> Put #

type Rep ApiKey # 
type Rep ApiKey = D1 * (MetaData "ApiKey" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "ApiKey" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int16)))

newtype ApiVersion #

Constructors

ApiVersion Int16 

Instances

Enum ApiVersion # 
Eq ApiVersion # 
Integral ApiVersion # 
Num ApiVersion # 
Ord ApiVersion # 
Real ApiVersion # 
Show ApiVersion # 
Generic ApiVersion # 

Associated Types

type Rep ApiVersion :: * -> * #

Deserializable ApiVersion # 
Serializable ApiVersion # 

Methods

serialize :: ApiVersion -> Put #

type Rep ApiVersion # 
type Rep ApiVersion = D1 * (MetaData "ApiVersion" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "ApiVersion" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int16)))

newtype CorrelationId #

Constructors

CorrelationId Int32 

Instances

Enum CorrelationId # 
Eq CorrelationId # 
Integral CorrelationId # 
Num CorrelationId # 
Ord CorrelationId # 
Real CorrelationId # 
Show CorrelationId # 
Generic CorrelationId # 

Associated Types

type Rep CorrelationId :: * -> * #

Deserializable CorrelationId # 
Serializable CorrelationId # 
type Rep CorrelationId # 
type Rep CorrelationId = D1 * (MetaData "CorrelationId" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "CorrelationId" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype ClientId #

Constructors

ClientId KafkaString 

Instances

Eq ClientId # 
Show ClientId # 
IsString ClientId # 
Generic ClientId # 

Associated Types

type Rep ClientId :: * -> * #

Methods

from :: ClientId -> Rep ClientId x #

to :: Rep ClientId x -> ClientId #

Deserializable ClientId # 
Serializable ClientId # 

Methods

serialize :: ClientId -> Put #

type Rep ClientId # 
type Rep ClientId = D1 * (MetaData "ClientId" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "ClientId" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * KafkaString)))

data RequestMessage #

Instances

Eq RequestMessage # 
Show RequestMessage # 
Generic RequestMessage # 

Associated Types

type Rep RequestMessage :: * -> * #

Serializable RequestMessage # 
type Rep RequestMessage # 

newtype KafkaBytes #

Constructors

KBytes 

Instances

Eq KafkaBytes # 
Show KafkaBytes # 
IsString KafkaBytes # 
Generic KafkaBytes # 

Associated Types

type Rep KafkaBytes :: * -> * #

Deserializable KafkaBytes # 
Serializable KafkaBytes # 

Methods

serialize :: KafkaBytes -> Put #

type Rep KafkaBytes # 
type Rep KafkaBytes = D1 * (MetaData "KafkaBytes" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "KBytes" PrefixI True) (S1 * (MetaSel (Just Symbol "_kafkaByteString") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ByteString)))

newtype Broker #

Constructors

Broker 

Fields

Instances

Eq Broker # 

Methods

(==) :: Broker -> Broker -> Bool #

(/=) :: Broker -> Broker -> Bool #

Ord Broker # 
Show Broker # 
Generic Broker # 

Associated Types

type Rep Broker :: * -> * #

Methods

from :: Broker -> Rep Broker x #

to :: Rep Broker x -> Broker #

Deserializable Broker # 
type Rep Broker # 
type Rep Broker = D1 * (MetaData "Broker" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Broker" PrefixI True) (S1 * (MetaSel (Just Symbol "_brokerFields") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (NodeId, Host, Port))))

newtype NodeId #

Constructors

NodeId 

Fields

Instances

Enum NodeId # 
Eq NodeId # 

Methods

(==) :: NodeId -> NodeId -> Bool #

(/=) :: NodeId -> NodeId -> Bool #

Integral NodeId # 
Num NodeId # 
Ord NodeId # 
Real NodeId # 
Show NodeId # 
Generic NodeId # 

Associated Types

type Rep NodeId :: * -> * #

Methods

from :: NodeId -> Rep NodeId x #

to :: Rep NodeId x -> NodeId #

Deserializable NodeId # 
type Rep NodeId # 
type Rep NodeId = D1 * (MetaData "NodeId" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "NodeId" PrefixI True) (S1 * (MetaSel (Just Symbol "_nodeId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype Host #

Constructors

Host 

Instances

Eq Host # 

Methods

(==) :: Host -> Host -> Bool #

(/=) :: Host -> Host -> Bool #

Ord Host # 

Methods

compare :: Host -> Host -> Ordering #

(<) :: Host -> Host -> Bool #

(<=) :: Host -> Host -> Bool #

(>) :: Host -> Host -> Bool #

(>=) :: Host -> Host -> Bool #

max :: Host -> Host -> Host #

min :: Host -> Host -> Host #

Show Host # 

Methods

showsPrec :: Int -> Host -> ShowS #

show :: Host -> String #

showList :: [Host] -> ShowS #

IsString Host # 

Methods

fromString :: String -> Host #

Generic Host # 

Associated Types

type Rep Host :: * -> * #

Methods

from :: Host -> Rep Host x #

to :: Rep Host x -> Host #

Deserializable Host # 

Methods

deserialize :: Get Host #

type Rep Host # 
type Rep Host = D1 * (MetaData "Host" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Host" PrefixI True) (S1 * (MetaSel (Just Symbol "_hostKString") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * KafkaString)))

newtype Port #

Constructors

Port 

Fields

Instances

Enum Port # 

Methods

succ :: Port -> Port #

pred :: Port -> Port #

toEnum :: Int -> Port #

fromEnum :: Port -> Int #

enumFrom :: Port -> [Port] #

enumFromThen :: Port -> Port -> [Port] #

enumFromTo :: Port -> Port -> [Port] #

enumFromThenTo :: Port -> Port -> Port -> [Port] #

Eq Port # 

Methods

(==) :: Port -> Port -> Bool #

(/=) :: Port -> Port -> Bool #

Integral Port # 

Methods

quot :: Port -> Port -> Port #

rem :: Port -> Port -> Port #

div :: Port -> Port -> Port #

mod :: Port -> Port -> Port #

quotRem :: Port -> Port -> (Port, Port) #

divMod :: Port -> Port -> (Port, Port) #

toInteger :: Port -> Integer #

Num Port # 

Methods

(+) :: Port -> Port -> Port #

(-) :: Port -> Port -> Port #

(*) :: Port -> Port -> Port #

negate :: Port -> Port #

abs :: Port -> Port #

signum :: Port -> Port #

fromInteger :: Integer -> Port #

Ord Port # 

Methods

compare :: Port -> Port -> Ordering #

(<) :: Port -> Port -> Bool #

(<=) :: Port -> Port -> Bool #

(>) :: Port -> Port -> Bool #

(>=) :: Port -> Port -> Bool #

max :: Port -> Port -> Port #

min :: Port -> Port -> Port #

Real Port # 

Methods

toRational :: Port -> Rational #

Show Port # 

Methods

showsPrec :: Int -> Port -> ShowS #

show :: Port -> String #

showList :: [Port] -> ShowS #

Generic Port # 

Associated Types

type Rep Port :: * -> * #

Methods

from :: Port -> Rep Port x #

to :: Rep Port x -> Port #

Deserializable Port # 

Methods

deserialize :: Get Port #

type Rep Port # 
type Rep Port = D1 * (MetaData "Port" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Port" PrefixI True) (S1 * (MetaSel (Just Symbol "_portInt") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype Leader #

Constructors

Leader 

Fields

Instances

Eq Leader # 

Methods

(==) :: Leader -> Leader -> Bool #

(/=) :: Leader -> Leader -> Bool #

Ord Leader # 
Show Leader # 
Generic Leader # 

Associated Types

type Rep Leader :: * -> * #

Methods

from :: Leader -> Rep Leader x #

to :: Rep Leader x -> Leader #

Deserializable Leader # 
type Rep Leader # 
type Rep Leader = D1 * (MetaData "Leader" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Leader" PrefixI True) (S1 * (MetaSel (Just Symbol "_leaderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int32))))

newtype Replicas #

Constructors

Replicas [Int32] 

Instances

Eq Replicas # 
Show Replicas # 
Generic Replicas # 

Associated Types

type Rep Replicas :: * -> * #

Methods

from :: Replicas -> Rep Replicas x #

to :: Rep Replicas x -> Replicas #

Deserializable Replicas # 
Serializable Replicas # 

Methods

serialize :: Replicas -> Put #

type Rep Replicas # 
type Rep Replicas = D1 * (MetaData "Replicas" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Replicas" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Int32])))

newtype Isr #

Constructors

Isr [Int32] 

Instances

Eq Isr # 

Methods

(==) :: Isr -> Isr -> Bool #

(/=) :: Isr -> Isr -> Bool #

Show Isr # 

Methods

showsPrec :: Int -> Isr -> ShowS #

show :: Isr -> String #

showList :: [Isr] -> ShowS #

Generic Isr # 

Associated Types

type Rep Isr :: * -> * #

Methods

from :: Isr -> Rep Isr x #

to :: Rep Isr x -> Isr #

Deserializable Isr # 

Methods

deserialize :: Get Isr #

type Rep Isr # 
type Rep Isr = D1 * (MetaData "Isr" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Isr" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Int32])))

newtype Time #

Constructors

Time 

Fields

Instances

Bounded Time # 
Enum Time # 

Methods

succ :: Time -> Time #

pred :: Time -> Time #

toEnum :: Int -> Time #

fromEnum :: Time -> Int #

enumFrom :: Time -> [Time] #

enumFromThen :: Time -> Time -> [Time] #

enumFromTo :: Time -> Time -> [Time] #

enumFromThenTo :: Time -> Time -> Time -> [Time] #

Eq Time # 

Methods

(==) :: Time -> Time -> Bool #

(/=) :: Time -> Time -> Bool #

Integral Time # 

Methods

quot :: Time -> Time -> Time #

rem :: Time -> Time -> Time #

div :: Time -> Time -> Time #

mod :: Time -> Time -> Time #

quotRem :: Time -> Time -> (Time, Time) #

divMod :: Time -> Time -> (Time, Time) #

toInteger :: Time -> Integer #

Num Time # 

Methods

(+) :: Time -> Time -> Time #

(-) :: Time -> Time -> Time #

(*) :: Time -> Time -> Time #

negate :: Time -> Time #

abs :: Time -> Time #

signum :: Time -> Time #

fromInteger :: Integer -> Time #

Ord Time # 

Methods

compare :: Time -> Time -> Ordering #

(<) :: Time -> Time -> Bool #

(<=) :: Time -> Time -> Bool #

(>) :: Time -> Time -> Bool #

(>=) :: Time -> Time -> Bool #

max :: Time -> Time -> Time #

min :: Time -> Time -> Time #

Real Time # 

Methods

toRational :: Time -> Rational #

Show Time # 

Methods

showsPrec :: Int -> Time -> ShowS #

show :: Time -> String #

showList :: [Time] -> ShowS #

Generic Time # 

Associated Types

type Rep Time :: * -> * #

Methods

from :: Time -> Rep Time x #

to :: Rep Time x -> Time #

Serializable Time # 

Methods

serialize :: Time -> Put #

type Rep Time # 
type Rep Time = D1 * (MetaData "Time" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Time" PrefixI True) (S1 * (MetaSel (Just Symbol "_timeInt") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int64)))

newtype MaxNumberOfOffsets #

Instances

Enum MaxNumberOfOffsets # 
Eq MaxNumberOfOffsets # 
Integral MaxNumberOfOffsets # 
Num MaxNumberOfOffsets # 
Ord MaxNumberOfOffsets # 
Real MaxNumberOfOffsets # 
Show MaxNumberOfOffsets # 
Generic MaxNumberOfOffsets # 
Serializable MaxNumberOfOffsets # 
type Rep MaxNumberOfOffsets # 
type Rep MaxNumberOfOffsets = D1 * (MetaData "MaxNumberOfOffsets" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "MaxNumberOfOffsets" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype ReplicaId #

Constructors

ReplicaId Int32 

Instances

Enum ReplicaId # 
Eq ReplicaId # 
Integral ReplicaId # 
Num ReplicaId # 
Ord ReplicaId # 
Real ReplicaId # 
Show ReplicaId # 
Generic ReplicaId # 

Associated Types

type Rep ReplicaId :: * -> * #

Deserializable ReplicaId # 
Serializable ReplicaId # 

Methods

serialize :: ReplicaId -> Put #

type Rep ReplicaId # 
type Rep ReplicaId = D1 * (MetaData "ReplicaId" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "ReplicaId" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype MaxWaitTime #

Constructors

MaxWaitTime Int32 

Instances

Enum MaxWaitTime # 
Eq MaxWaitTime # 
Integral MaxWaitTime # 
Num MaxWaitTime # 
Ord MaxWaitTime # 
Real MaxWaitTime # 
Show MaxWaitTime # 
Generic MaxWaitTime # 

Associated Types

type Rep MaxWaitTime :: * -> * #

Deserializable MaxWaitTime # 
Serializable MaxWaitTime # 

Methods

serialize :: MaxWaitTime -> Put #

type Rep MaxWaitTime # 
type Rep MaxWaitTime = D1 * (MetaData "MaxWaitTime" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "MaxWaitTime" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype MinBytes #

Constructors

MinBytes Int32 

Instances

Enum MinBytes # 
Eq MinBytes # 
Integral MinBytes # 
Num MinBytes # 
Ord MinBytes # 
Real MinBytes # 
Show MinBytes # 
Generic MinBytes # 

Associated Types

type Rep MinBytes :: * -> * #

Methods

from :: MinBytes -> Rep MinBytes x #

to :: Rep MinBytes x -> MinBytes #

Deserializable MinBytes # 
Serializable MinBytes # 

Methods

serialize :: MinBytes -> Put #

type Rep MinBytes # 
type Rep MinBytes = D1 * (MetaData "MinBytes" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "MinBytes" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype MaxBytes #

Constructors

MaxBytes Int32 

Instances

Enum MaxBytes # 
Eq MaxBytes # 
Integral MaxBytes # 
Num MaxBytes # 
Ord MaxBytes # 
Real MaxBytes # 
Show MaxBytes # 
Generic MaxBytes # 

Associated Types

type Rep MaxBytes :: * -> * #

Methods

from :: MaxBytes -> Rep MaxBytes x #

to :: Rep MaxBytes x -> MaxBytes #

Deserializable MaxBytes # 
Serializable MaxBytes # 

Methods

serialize :: MaxBytes -> Put #

type Rep MaxBytes # 
type Rep MaxBytes = D1 * (MetaData "MaxBytes" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "MaxBytes" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype RequiredAcks #

Constructors

RequiredAcks Int16 

Instances

Enum RequiredAcks # 
Eq RequiredAcks # 
Integral RequiredAcks # 
Num RequiredAcks # 
Ord RequiredAcks # 
Real RequiredAcks # 
Show RequiredAcks # 
Generic RequiredAcks # 

Associated Types

type Rep RequiredAcks :: * -> * #

Deserializable RequiredAcks # 
Serializable RequiredAcks # 
type Rep RequiredAcks # 
type Rep RequiredAcks = D1 * (MetaData "RequiredAcks" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "RequiredAcks" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int16)))

newtype Timeout #

Constructors

Timeout Int32 

Instances

Enum Timeout # 
Eq Timeout # 

Methods

(==) :: Timeout -> Timeout -> Bool #

(/=) :: Timeout -> Timeout -> Bool #

Integral Timeout # 
Num Timeout # 
Ord Timeout # 
Real Timeout # 
Show Timeout # 
Generic Timeout # 

Associated Types

type Rep Timeout :: * -> * #

Methods

from :: Timeout -> Rep Timeout x #

to :: Rep Timeout x -> Timeout #

Deserializable Timeout # 
Serializable Timeout # 

Methods

serialize :: Timeout -> Put #

type Rep Timeout # 
type Rep Timeout = D1 * (MetaData "Timeout" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Timeout" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype Partition #

Constructors

Partition Int32 

Instances

Enum Partition # 
Eq Partition # 
Integral Partition # 
Num Partition # 
Ord Partition # 
Real Partition # 
Show Partition # 
Generic Partition # 

Associated Types

type Rep Partition :: * -> * #

Deserializable Partition # 
Serializable Partition # 

Methods

serialize :: Partition -> Put #

type Rep Partition # 
type Rep Partition = D1 * (MetaData "Partition" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Partition" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype Offset #

Constructors

Offset Int64 

Instances

Enum Offset # 
Eq Offset # 

Methods

(==) :: Offset -> Offset -> Bool #

(/=) :: Offset -> Offset -> Bool #

Integral Offset # 
Num Offset # 
Ord Offset # 
Real Offset # 
Show Offset # 
Generic Offset # 

Associated Types

type Rep Offset :: * -> * #

Methods

from :: Offset -> Rep Offset x #

to :: Rep Offset x -> Offset #

Deserializable Offset # 
Serializable Offset # 

Methods

serialize :: Offset -> Put #

type Rep Offset # 
type Rep Offset = D1 * (MetaData "Offset" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Offset" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int64)))

newtype Message #

Constructors

Message 

Instances

Eq Message # 

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

Show Message # 
Generic Message # 

Associated Types

type Rep Message :: * -> * #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

Deserializable Message # 
Serializable Message # 

Methods

serialize :: Message -> Put #

type Rep Message # 
type Rep Message = D1 * (MetaData "Message" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Message" PrefixI True) (S1 * (MetaSel (Just Symbol "_messageFields") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Crc, MagicByte, Attributes, Key, Value))))

data CompressionCodec #

Constructors

NoCompression 
Gzip 

Instances

Eq CompressionCodec # 
Show CompressionCodec # 
Generic CompressionCodec # 
type Rep CompressionCodec # 
type Rep CompressionCodec = D1 * (MetaData "CompressionCodec" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" False) ((:+:) * (C1 * (MetaCons "NoCompression" PrefixI False) (U1 *)) (C1 * (MetaCons "Gzip" PrefixI False) (U1 *)))

newtype Crc #

Constructors

Crc Int32 

Instances

Enum Crc # 

Methods

succ :: Crc -> Crc #

pred :: Crc -> Crc #

toEnum :: Int -> Crc #

fromEnum :: Crc -> Int #

enumFrom :: Crc -> [Crc] #

enumFromThen :: Crc -> Crc -> [Crc] #

enumFromTo :: Crc -> Crc -> [Crc] #

enumFromThenTo :: Crc -> Crc -> Crc -> [Crc] #

Eq Crc # 

Methods

(==) :: Crc -> Crc -> Bool #

(/=) :: Crc -> Crc -> Bool #

Integral Crc # 

Methods

quot :: Crc -> Crc -> Crc #

rem :: Crc -> Crc -> Crc #

div :: Crc -> Crc -> Crc #

mod :: Crc -> Crc -> Crc #

quotRem :: Crc -> Crc -> (Crc, Crc) #

divMod :: Crc -> Crc -> (Crc, Crc) #

toInteger :: Crc -> Integer #

Num Crc # 

Methods

(+) :: Crc -> Crc -> Crc #

(-) :: Crc -> Crc -> Crc #

(*) :: Crc -> Crc -> Crc #

negate :: Crc -> Crc #

abs :: Crc -> Crc #

signum :: Crc -> Crc #

fromInteger :: Integer -> Crc #

Ord Crc # 

Methods

compare :: Crc -> Crc -> Ordering #

(<) :: Crc -> Crc -> Bool #

(<=) :: Crc -> Crc -> Bool #

(>) :: Crc -> Crc -> Bool #

(>=) :: Crc -> Crc -> Bool #

max :: Crc -> Crc -> Crc #

min :: Crc -> Crc -> Crc #

Real Crc # 

Methods

toRational :: Crc -> Rational #

Show Crc # 

Methods

showsPrec :: Int -> Crc -> ShowS #

show :: Crc -> String #

showList :: [Crc] -> ShowS #

Generic Crc # 

Associated Types

type Rep Crc :: * -> * #

Methods

from :: Crc -> Rep Crc x #

to :: Rep Crc x -> Crc #

Deserializable Crc # 

Methods

deserialize :: Get Crc #

Serializable Crc # 

Methods

serialize :: Crc -> Put #

type Rep Crc # 
type Rep Crc = D1 * (MetaData "Crc" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Crc" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int32)))

newtype MagicByte #

Constructors

MagicByte Int8 

Instances

Enum MagicByte # 
Eq MagicByte # 
Integral MagicByte # 
Num MagicByte # 
Ord MagicByte # 
Real MagicByte # 
Show MagicByte # 
Generic MagicByte # 

Associated Types

type Rep MagicByte :: * -> * #

Deserializable MagicByte # 
Serializable MagicByte # 

Methods

serialize :: MagicByte -> Put #

type Rep MagicByte # 
type Rep MagicByte = D1 * (MetaData "MagicByte" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "MagicByte" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int8)))

data Attributes #

Instances

Eq Attributes # 
Show Attributes # 
Generic Attributes # 

Associated Types

type Rep Attributes :: * -> * #

Deserializable Attributes # 
Serializable Attributes # 

Methods

serialize :: Attributes -> Put #

type Rep Attributes # 
type Rep Attributes = D1 * (MetaData "Attributes" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" False) (C1 * (MetaCons "Attributes" PrefixI True) (S1 * (MetaSel (Just Symbol "_compressionCodec") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * CompressionCodec)))

newtype Key #

Constructors

Key 

Instances

Eq Key # 

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

Show Key # 

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #

Generic Key # 

Associated Types

type Rep Key :: * -> * #

Methods

from :: Key -> Rep Key x #

to :: Rep Key x -> Key #

Deserializable Key # 

Methods

deserialize :: Get Key #

Serializable Key # 

Methods

serialize :: Key -> Put #

type Rep Key # 
type Rep Key = D1 * (MetaData "Key" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Key" PrefixI True) (S1 * (MetaSel (Just Symbol "_keyBytes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe KafkaBytes))))

newtype Value #

Constructors

Value 

Instances

Eq Value # 

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

Show Value # 

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Generic Value # 

Associated Types

type Rep Value :: * -> * #

Methods

from :: Value -> Rep Value x #

to :: Rep Value x -> Value #

Deserializable Value # 
Serializable Value # 

Methods

serialize :: Value -> Put #

type Rep Value # 
type Rep Value = D1 * (MetaData "Value" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Value" PrefixI True) (S1 * (MetaSel (Just Symbol "_valueBytes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe KafkaBytes))))

data ResponseMessage #

Instances

Eq ResponseMessage # 
Show ResponseMessage # 
Generic ResponseMessage # 
type Rep ResponseMessage # 

newtype Metadata #

Constructors

Metadata KafkaString 

Instances

Eq Metadata # 
Show Metadata # 
IsString Metadata # 
Generic Metadata # 

Associated Types

type Rep Metadata :: * -> * #

Methods

from :: Metadata -> Rep Metadata x #

to :: Rep Metadata x -> Metadata #

Deserializable Metadata # 
Serializable Metadata # 

Methods

serialize :: Metadata -> Put #

type Rep Metadata # 
type Rep Metadata = D1 * (MetaData "Metadata" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Metadata" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * KafkaString)))

data KafkaError #

Constructors

NoError

0 No error--it worked!

Unknown

-1 An unexpected server error

OffsetOutOfRange

1 The requested offset is outside the range of offsets maintained by the server for the given topic/partition.

InvalidMessage

2 This indicates that a message contents does not match its CRC

UnknownTopicOrPartition

3 This request is for a topic or partition that does not exist on this broker.

InvalidMessageSize

4 The message has a negative size

LeaderNotAvailable

5 This error is thrown if we are in the middle of a leadership election and there is currently no leader for this partition and hence it is unavailable for writes.

NotLeaderForPartition

6 This error is thrown if the client attempts to send messages to a replica that is not the leader for some partition. It indicates that the clients metadata is out of date.

RequestTimedOut

7 This error is thrown if the request exceeds the user-specified time limit in the request.

BrokerNotAvailable

8 This is not a client facing error and is used mostly by tools when a broker is not alive.

ReplicaNotAvailable

9 If replica is expected on a broker, but is not.

MessageSizeTooLarge

10 The server has a configurable maximum message size to avoid unbounded memory allocation. This error is thrown if the client attempt to produce a message larger than this maximum.

StaleControllerEpochCode

11 Internal error code for broker-to-broker communication.

OffsetMetadataTooLargeCode

12 If you specify a string larger than configured maximum for offset metadata

OffsetsLoadInProgressCode

14 The broker returns this error code for an offset fetch request if it is still loading offsets (after a leader change for that offsets topic partition).

ConsumerCoordinatorNotAvailableCode

15 The broker returns this error code for consumer metadata requests or offset commit requests if the offsets topic has not yet been created.

NotCoordinatorForConsumerCode

16 The broker returns this error code if it receives an offset fetch or commit request for a consumer group that it is not a coordinator for.

Instances

Bounded KafkaError # 
Enum KafkaError # 
Eq KafkaError # 
Show KafkaError # 
Generic KafkaError # 

Associated Types

type Rep KafkaError :: * -> * #

Exception KafkaError # 
Deserializable KafkaError # 
Serializable KafkaError # 

Methods

serialize :: KafkaError -> Put #

type Rep KafkaError # 
type Rep KafkaError = D1 * (MetaData "KafkaError" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" False) ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "NoError" PrefixI False) (U1 *)) (C1 * (MetaCons "Unknown" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "OffsetOutOfRange" PrefixI False) (U1 *)) (C1 * (MetaCons "InvalidMessage" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "UnknownTopicOrPartition" PrefixI False) (U1 *)) (C1 * (MetaCons "InvalidMessageSize" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "LeaderNotAvailable" PrefixI False) (U1 *)) (C1 * (MetaCons "NotLeaderForPartition" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "RequestTimedOut" PrefixI False) (U1 *)) (C1 * (MetaCons "BrokerNotAvailable" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "ReplicaNotAvailable" PrefixI False) (U1 *)) (C1 * (MetaCons "MessageSizeTooLarge" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "StaleControllerEpochCode" PrefixI False) (U1 *)) (C1 * (MetaCons "OffsetMetadataTooLargeCode" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "OffsetsLoadInProgressCode" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "ConsumerCoordinatorNotAvailableCode" PrefixI False) (U1 *)) (C1 * (MetaCons "NotCoordinatorForConsumerCode" PrefixI False) (U1 *)))))))

newtype Request #

Instances

Eq Request # 

Methods

(==) :: Request -> Request -> Bool #

(/=) :: Request -> Request -> Bool #

Show Request # 
Generic Request # 

Associated Types

type Rep Request :: * -> * #

Methods

from :: Request -> Rep Request x #

to :: Rep Request x -> Request #

Serializable Request # 

Methods

serialize :: Request -> Put #

type Rep Request # 
type Rep Request = D1 * (MetaData "Request" "Network.Kafka.Protocol" "milena-0.5.2.2-Llzag1PPzlJ4hURASp2yJM" True) (C1 * (MetaCons "Request" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (CorrelationId, ClientId, RequestMessage))))

Generated lenses

Composed lenses

keyed :: (Field1 a a b b, Choice p, Applicative f, Eq b) => b -> Optic' p f a a #