Copyright | (c) Moritz Schulte 2017 |
---|---|
License | BSD3 |
Maintainer | mtesseract@silverratio.net |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
This module provides the Nakadi Config Types.
- data Config
- data HttpBackend = HttpBackend {
- _httpLbs :: Request -> IO (Response ByteString)
- _responseOpen :: Request -> Manager -> IO (Response BodyReader)
- _responseClose :: Response BodyReader -> IO ()
- data ConsumeParameters
- type StreamConnectCallback = Maybe LogFunc -> Response () -> IO ()
Documentation
HasNakadiRequestTemplate Config Request | |
HasNakadiManager Config Manager | |
HasNakadiHttp Config HttpBackend | |
HasNakadiConsumeParameters Config ConsumeParameters | |
HasNakadiCtxConfig SubscriptionEventStreamContext Config | |
HasNakadiStreamConnectCallback Config (Maybe StreamConnectCallback) | |
HasNakadiRetryPolicy Config (RetryPolicyM IO) | |
HasNakadiLogFunc Config (Maybe LogFunc) | |
HasNakadiHttpErrorCallback Config (Maybe HttpErrorCallback) | |
HasNakadiDeserializationFailureCallback Config (Maybe (ByteString -> Text -> IO ())) | |
HasNakadiRequestModifier Config (Request -> IO Request) | |
data HttpBackend Source #
Type encapsulating the HTTP backend functions used by this package. By default the corresponding functions from the http-client package are used. Useful, for e.g., testing.
HttpBackend | |
|
HasNakadiHttp Config HttpBackend | |
HasNakadiResponseOpen HttpBackend (Request -> Manager -> IO (Response BodyReader)) | |
HasNakadiResponseClose HttpBackend (Response BodyReader -> IO ()) | |
HasNakadiHttpLbs HttpBackend (Request -> IO (Response ByteString)) | |
data ConsumeParameters Source #
ConsumeParameters
Eq ConsumeParameters Source # | |
Ord ConsumeParameters Source # | |
Show ConsumeParameters Source # | |
HasNakadiConsumeParameters Config ConsumeParameters | |
HasNakadiFlowId ConsumeParameters (Maybe Text) | |
HasNakadiStreamTimeout ConsumeParameters (Maybe Int32) | |
HasNakadiStreamLimit ConsumeParameters (Maybe Int32) | |
HasNakadiStreamKeepAliveLimit ConsumeParameters (Maybe Int32) | |
HasNakadiMaxUncommittedEvents ConsumeParameters (Maybe Int32) | |
HasNakadiBatchLimit ConsumeParameters (Maybe Int32) | |
HasNakadiBatchFlushTimeout ConsumeParameters (Maybe Int32) | |