local.go 295 B

12345678910111213141516
  1. package http
  2. import (
  3. "net/http"
  4. "go-common/library/log"
  5. bm "go-common/library/net/http/blademaster"
  6. )
  7. func moPing(c *bm.Context) {
  8. var err error
  9. if err = svc.Ping(c); err != nil {
  10. log.Error("creative-admin ping error(%v)", err)
  11. c.AbortWithStatus(http.StatusServiceUnavailable)
  12. }
  13. }