local.go 298 B

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