Open pmorie opened 6 years ago
You should be able to register a handler to /readiness by implementing an optional interface:
/readiness
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.
BusinessLogic
HasReadinessCheck
You should be able to register a handler to
/readiness
by implementing an optional interface:If your
BusinessLogic
implementsHasReadinessCheck
, the server should automatically register/readiness
with that handler.