go-common/app/interface/main/videoup/http/local.go

16 lines
298 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package http
import (
"go-common/library/log"
bm "go-common/library/net/http/blademaster"
"net/http"
)
func ping(c *bm.Context) {
var err error
if err = vdpSvc.Ping(c); err != nil {
log.Error("videoup-interface ping error(%v)", err)
c.AbortWithStatus(http.StatusServiceUnavailable)
}
}