health.go 462 B

1234567891011121314
  1. package example
  2. // Health implements the health.Healther interface.
  3. func (e Example) Health() bool {
  4. // More advanced plugins will check their state, i.e. are they
  5. // synchronized correctly against their backend etc.
  6. // Be careful though by making this a single point of failure. I.e. if 5 CoreDNS
  7. // instances are talking to the same backend and the backend goes down, *all* your
  8. // instances are unhealthy.
  9. // This one just returns OK.
  10. return true
  11. }