Skip to content

CrossRef/heartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

heartbeat

Expose a heartbeat route for Ring web apps.

Install

In your project.clj:

[crossref/heartbeat "0.1.2"]

Usage

Define some web and service checks:

(use 'heartbeat.core)

(def-web-check :google "http://www.google.com")
(def-web-check :crossref-api "http://api.crossref.org/works")

(def-service-check :mongo (fn [] (congomongo.core/fetch "dois")))

Expose the /heartbeat route using the provided ring middleware:

(use 'heartbeat.ring)

(-> my-api-routes
	(wrap-heartbeat))

About

Expose a heartbeat route for Ring web apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages