local.go 358 B

1234567891011121314151617181920
  1. package http
  2. import (
  3. "net/http"
  4. "go-common/library/log"
  5. bm "go-common/library/net/http/blademaster"
  6. )
  7. // ping check server ok.
  8. func ping(c *bm.Context) {
  9. if err := svr.Ping(c); err != nil {
  10. log.Error("location service ping error(%v)", err)
  11. c.AbortWithStatus(http.StatusServiceUnavailable)
  12. }
  13. }
  14. func register(c *bm.Context) {
  15. c.JSON(nil, nil)
  16. }