2.3.0 • Published 8 years ago

airlock v2.3.0

Weekly downloads
35
License
-
Repository
github
Last release
8 years ago

airlock

A prober to probe HTTP, tchannel, or potentially other protocols based backends for health

Example

var Prober = require("airlock")

var prober = new Prober({
    title: 'probe interface',
    statsd: { increment: function (key) {
        // send increment command to a statsd server.
    } },
    logger: {
        warn: function (message) {
            /* sink this message to your logging system */
        }
    }
})

var thunk = request.bind(null, {
    uri: 'http://www.example.com/foo',
    method: 'POST',
    json: { ... }
})
prober.probe(thunk, function (err, res, body) {
    /* we probed the async task and have the result
        if the async task fails a lot then the prober
        automatically rate limits
    */
})

Installation

npm install airlock

Contributors

  • Raynos
  • markyen
  • jwolski

MIT Licenced

2.3.0

8 years ago

2.2.0

8 years ago

2.1.2

8 years ago

2.1.1

9 years ago

2.1.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago