nakadi-client-0.5.0.3: Client library for the Nakadi Event Broker

Copyright(c) Moritz Schulte 2017 2018
LicenseBSD3
Maintainermtesseract@silverratio.net
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Network.Nakadi.Types.Config

Description

This module provides the Nakadi Config Types.

Synopsis

Documentation

data Config m Source #

Instances

HasNakadiRequestTemplate (Config m) Request 
HasNakadiStreamConnectCallback (Config m) (Maybe (StreamConnectCallback m)) 
HasNakadiRetryPolicy (Config m) (RetryPolicyM IO) 
HasNakadiManager (Config m) (Maybe Manager) 

Methods

manager :: Lens' (Config m) (Maybe Manager)

HasNakadiLogFunc (Config m) (Maybe (LogFunc m)) 

Methods

logFunc :: Lens' (Config m) (Maybe (LogFunc m))

HasNakadiHttpErrorCallback (Config m) (Maybe (HttpErrorCallback m)) 
HasNakadiHttp (Config m) (HttpBackend m) 

Methods

http :: Lens' (Config m) (HttpBackend m)

HasNakadiFlowId (Config m) (Maybe FlowId) 

Methods

flowId :: Lens' (Config m) (Maybe FlowId)

HasNakadiDeserializationFailureCallback (Config m) (Maybe (ByteString -> Text -> m ())) 
HasNakadiConsumeParameters (Config m) (Maybe ConsumeParameters) 
HasNakadiRequestModifier (Config m) (Request -> m Request) 
HasNakadiHttpResponseOpen (HttpBackend b) (Config b -> Request -> Maybe Manager -> b (Response (ConduitM () ByteString b ()))) 
HasNakadiHttpLbs (HttpBackend b) (Config b -> Request -> Maybe Manager -> b (Response ByteString)) 

data ConsumeParameters Source #

ConsumeParameters

Instances

Eq ConsumeParameters Source # 
Ord ConsumeParameters Source # 
Show ConsumeParameters Source # 
HasNakadiStreamTimeout ConsumeParameters (Maybe Int32) 
HasNakadiStreamLimit ConsumeParameters (Maybe Int32) 
HasNakadiStreamKeepAliveLimit ConsumeParameters (Maybe Int32) 
HasNakadiMaxUncommittedEvents ConsumeParameters (Maybe Int32) 
HasNakadiBatchLimit ConsumeParameters (Maybe Int32) 
HasNakadiBatchFlushTimeout ConsumeParameters (Maybe Int32) 
HasNakadiConsumeParameters (Config m) (Maybe ConsumeParameters) 

type StreamConnectCallback m = Response () -> m () Source #

Config

data HttpBackend b Source #

Instances

HasNakadiHttp (Config m) (HttpBackend m) 

Methods

http :: Lens' (Config m) (HttpBackend m)

HasNakadiHttpResponseOpen (HttpBackend b) (Config b -> Request -> Maybe Manager -> b (Response (ConduitM () ByteString b ()))) 
HasNakadiHttpResponseClose (HttpBackend b) (Response () -> b ()) 

Methods

httpResponseClose :: Lens' (HttpBackend b) (Response () -> b ())

HasNakadiHttpLbs (HttpBackend b) (Config b -> Request -> Maybe Manager -> b (Response ByteString))