-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Nuxeo tools
@package nuxeo
@version 0.3.2

module Nuxeo.Types
data NuxeoInstance
NuxeoInstance :: Text -> Text -> Text -> NuxeoInstance
[instanceUrl] :: NuxeoInstance -> Text
[instanceLogin] :: NuxeoInstance -> Text
[instancePassword] :: NuxeoInstance -> Text
type NuxeoLog = [NuxeoLogEntry]
data NuxeoLogEntry
NuxeoLogEntry :: LocalTime -> NuxeoLogType -> Text -> Text -> Text -> NuxeoLogEntry
[nuxeoLogEntryDthr] :: NuxeoLogEntry -> LocalTime
[nuxeoLogEntryType] :: NuxeoLogEntry -> NuxeoLogType
[nuxeoLogEntrySection] :: NuxeoLogEntry -> Text
[nuxeoLogEntryAction] :: NuxeoLogEntry -> Text
[nuxeoLogEntryLog] :: NuxeoLogEntry -> Text
data NuxeoLogType
NuxeoDebug :: NuxeoLogType
NuxeoError :: NuxeoLogType
NuxeoWarning :: NuxeoLogType
NuxeoInfo :: NuxeoLogType
instance GHC.Show.Show Nuxeo.Types.NuxeoInstance
instance GHC.Read.Read Nuxeo.Types.NuxeoInstance
instance GHC.Show.Show Nuxeo.Types.NuxeoLogEntry
instance GHC.Classes.Eq Nuxeo.Types.NuxeoLogType
instance GHC.Read.Read Nuxeo.Types.NuxeoLogType
instance GHC.Show.Show Nuxeo.Types.NuxeoLogType

module Nuxeo.Log

-- | Parse Nuxeo server.log
--   
--   <pre>
--   parseNuxeoLog "./server.log"
--     &gt;&gt;= return . filter (l -&gt; nuxeoLogEntryType l == Error)
--     &gt;&gt;= mapM_ (t -&gt;
--                   putStrLn $ (show $ nuxeoLogEntryType t)
--                   &lt;&gt;  " "
--                   &lt;&gt; (Text.unpack $ nuxeoLogEntryAction t)
--                   &lt;&gt; " "
--                   &lt;&gt; (Text.unpack $ nuxeoLogEntryLog t)
--               )
--   </pre>
parseNuxeoLog :: FilePath -> IO NuxeoLog

module Nuxeo.ElasticSearch

-- | POST <tt>{"params":{},"context":{}}</tt> to
--   <tt>/nuxeo/site/automation/Elasticsearch.Index</tt>
reindex :: NuxeoInstance -> IO (Either Text Text)
