@shopify/koa-liveness-ping
A package for creating a liveness ping middleware for use with koa
Last updated 4 months ago by shopify-dep .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @shopify/koa-liveness-ping 
SYNC missed versions from official npm registry.

@shopify/koa-liveness-ping

A package for creating a liveness ping middleware for use with koa

A liveness ping is a URL at which your application will respond with a 200 whenever your server is running. It can be used, for example, for liveness checks in kubernetes deployments.

Installation

$ yarn add @shopify/koa-liveness-ping

Usage

import Koa from 'koa';
import ping from '@shopify/koa-liveness-ping';

const app = new Koa();

// set up any error or loggin middlewares

app.use(ping());

// other routing middlewares should go after the liveness ping

This middleware can also be mounted at any path via koa-mount (Learn more).

Note: Mount the liveness ping middleware before all other routing-related middleware in order to ensure it can respond quickly and reliably.

Current Tags

  • 0.1.26                                ...           latest (4 months ago)

26 Versions

  • 0.1.26                                ...           4 months ago
  • 0.1.25                                ...           5 months ago
  • 0.1.24                                ...           5 months ago
  • 0.1.23                                ...           6 months ago
  • 0.1.22                                ...           7 months ago
  • 0.1.21                                ...           7 months ago
  • 0.1.20                                ...           7 months ago
  • 0.1.19                                ...           7 months ago
  • 0.1.18                                ...           9 months ago
  • 0.1.17                                ...           9 months ago
  • 0.1.16                                ...           a year ago
  • 0.1.15                                ...           a year ago
  • 0.1.14                                ...           a year ago
  • 0.1.13                                ...           a year ago
  • 0.1.12                                ...           a year ago
  • 0.1.11                                ...           a year ago
  • 0.1.10                                ...           a year ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 1
Last Week 1
Last Month 2
Dependencies (1)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |