bloodhound-0.12.1.0: ElasticSearch client library for Haskell

Copyright(C) 2014 Chris Allen
LicenseBSD-style (see the file LICENSE)
MaintainerChris Allen <cma@bitemyapp.com>
Stabilityprovisional
PortabilityDeriveGeneric, RecordWildCards
Safe HaskellNone
LanguageHaskell2010

Database.Bloodhound.Types.Internal

Description

Internal data types for Bloodhound. These types may change without notice so import at your own risk.

Synopsis

Documentation

data BHEnv Source

Common environment for Elasticsearch calls. Connections will be pipelined according to the provided HTTP connection manager.

Constructors

BHEnv 

Fields

bhServer :: Server
 
bhManager :: Manager
 
bhRequestHook :: Request -> IO Request

Low-level hook that is run before every request is sent. Used to implement custom authentication strategies. Defaults to return with mkBHEnv.

Instances

newtype Server Source

Server is used with the client functions to point at the ES instance

Constructors

Server Text 

class (Functor m, Applicative m, MonadIO m) => MonadBH m where Source

All API calls to Elasticsearch operate within MonadBH . The idea is that it can be easily embedded in your own monad transformer stack. A default instance for a ReaderT and alias BH is provided for the simple case.

Methods

getBHEnv :: m BHEnv Source