go-common/app/interface/main/videoup/http/local.go
2019-04-22 18:49:16 +08:00

16 lines
298 B
Go

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)
}
}