eventlog-live-0.3.0.0: Live processing of eventlog data.
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

GHC.Eventlog.Live.Socket

Description

 
Synopsis

Documentation

data EventlogSource Source #

The type of eventlog sockets.

data Tick a Source #

The type of data on a stream of items and ticks.

The Tick type is isomorphic to Maybe modulo strictness, but with the caveat that Tick does not represent failure.

Constructors

Item !a 
Tick 

Instances

Instances details
Foldable Tick Source # 
Instance details

Defined in GHC.Eventlog.Live.Machine.Core

Methods

fold :: Monoid m => Tick m -> m #

foldMap :: Monoid m => (a -> m) -> Tick a -> m #

foldMap' :: Monoid m => (a -> m) -> Tick a -> m #

foldr :: (a -> b -> b) -> b -> Tick a -> b #

foldr' :: (a -> b -> b) -> b -> Tick a -> b #

foldl :: (b -> a -> b) -> b -> Tick a -> b #

foldl' :: (b -> a -> b) -> b -> Tick a -> b #

foldr1 :: (a -> a -> a) -> Tick a -> a #

foldl1 :: (a -> a -> a) -> Tick a -> a #

toList :: Tick a -> [a] #

null :: Tick a -> Bool #

length :: Tick a -> Int #

elem :: Eq a => a -> Tick a -> Bool #

maximum :: Ord a => Tick a -> a #

minimum :: Ord a => Tick a -> a #

sum :: Num a => Tick a -> a #

product :: Num a => Tick a -> a #

Traversable Tick Source # 
Instance details

Defined in GHC.Eventlog.Live.Machine.Core

Methods

traverse :: Applicative f => (a -> f b) -> Tick a -> f (Tick b) #

sequenceA :: Applicative f => Tick (f a) -> f (Tick a) #

mapM :: Monad m => (a -> m b) -> Tick a -> m (Tick b) #

sequence :: Monad m => Tick (m a) -> m (Tick a) #

Functor Tick Source # 
Instance details

Defined in GHC.Eventlog.Live.Machine.Core

Methods

fmap :: (a -> b) -> Tick a -> Tick b #

(<$) :: a -> Tick b -> Tick a #

Show a => Show (Tick a) Source # 
Instance details

Defined in GHC.Eventlog.Live.Machine.Core

Methods

showsPrec :: Int -> Tick a -> ShowS #

show :: Tick a -> String #

showList :: [Tick a] -> ShowS #

Eq a => Eq (Tick a) Source # 
Instance details

Defined in GHC.Eventlog.Live.Machine.Core

Methods

(==) :: Tick a -> Tick a -> Bool #

(/=) :: Tick a -> Tick a -> Bool #

tryConnect :: FilePath -> IO Handle Source #

Try to connect to a Unix socket.

runWithEventlogSource Source #

Arguments

:: MonadUnliftIO m 
=> Verbosity

The logging verbosity.

-> EventlogSource

The eventlog socket handle.

-> Double

The initial timeout in microseconds for exponential backoff.

-> Double

The timeout exponent for exponential backoff.

-> Int

The batch interval in milliseconds.

-> Maybe Int

The number of bytes to read (defaults to 4KiB).

-> Maybe FilePath

An optional file to which to stream binary eventlog data.

-> ProcessT m (Tick Event) Void

The event processor.

-> m () 

Run an event processor with an eventlog socket.