pmorie / osb-broker-lib

A go library for developing an Open Service Broker
Apache License 2.0
28 stars 23 forks source link

Add optional callback for readiness probe #46

Open pmorie opened 6 years ago

pmorie commented 6 years ago

You should be able to register a handler to /readiness by implementing an optional interface:

type HasReadinessCheck interface {
  func Readiness(w http.ResponseWriter, r http.Request)
}

If your BusinessLogic implements HasReadinessCheck, the server should automatically register /readiness with that handler.