Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Response a = Either Error a
- data FetchResponse = FetchResponse {
- fetchMessages :: [ByteString]
- fetchNewOffset :: !Offset
- getFetchResponse :: Fetch -> Get FetchResponse
- getMultiFetchResponse :: [Fetch] -> Get [FetchResponse]
- getOffsetsResponse :: Get [Offset]
Documentation
type Response a = Either Error a Source
A response from Kafka can either be a failure or the value that was expected.
data FetchResponse Source
Result of a single Kafka Fetch
.
FetchResponse | |
|
getFetchResponse :: Fetch -> Get FetchResponse Source
Parses a single FetchResponse
for the given Fetch
request.
getMultiFetchResponse :: [Fetch] -> Get [FetchResponse] Source
Parses FetchResponse
s for each of the given Fetch
requests.
getOffsetsResponse :: Get [Offset] Source
Parses the response for an Offsets
request.