Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module provides basic support for implementing Serf event handler programs using Haskell. Serf calls event handlers by executing the specified handler program with information relevant to the handler set in environment variables.
Documentation
A union of all possible event types that Serf supports.
MemberJoin | An event indicating that members have joined the cluster. |
MemberLeave | An event indicating that members have left the cluster. |
MemberFailed | An event indicating that members have failed out of the cluster. |
User String | A custom event triggered by an agent in the cluster. |
All data set in the environment for the event handler. This is the primary way that Serf communicates relevant information to the executing handler.
getSerfEnv :: IO (Maybe SerfEnv) Source
Retrieve all environment info set by Serf, returning Nothing if any Serf environment data is missing.