patterns-0.1.0: Common patterns in message-oriented applications

Portabilitynon-portable
Stabilityexperimental
Safe HaskellNone

Network.Mom.Patterns.Basic.Pusher

Description

Pusher side of 'Pipeline'

Synopsis

Documentation

data Pusher Source

The pusher data type

withPusher :: Context -> String -> LinkType -> (Pusher -> IO a) -> IO aSource

The function in whose scope the pusher lives:

  • Context - The zeromq Context
  • String - The address
  • LinkType - Link type; usually, you want to bind a pusher to its address
  • (Pusher -> IO a) - Action in whose scope the pusher lives

push :: Pusher -> Source -> IO ()Source

Push a job down the pipeline; the Source creates the outgoing stream.