Skip to content

Instantly share code, notes, and snippets.

@jeroenr
Created July 31, 2017 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroenr/9701ad118ccdc2347b39da2fc6500383 to your computer and use it in GitHub Desktop.
Save jeroenr/9701ad118ccdc2347b39da2fc6500383 to your computer and use it in GitHub Desktop.
object Boot extends App
with HealthCheckRoute
with HealthCheckService {
val mongoClient = new MongoClient {
// insert real implementation here
def listDatabaseNames() = Future.successful(Nil)
}
override def checks: List[HealthCheck] = List(new MongoDbHealthCheck(mongoClient))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment