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

18 lines
324 B
Go

package http
import (
"net/http"
"go-common/library/log"
bm "go-common/library/net/http/blademaster"
)
// ping check server ok.
func ping(c *bm.Context) {
var err error
if err = apSvc.Ping(c); err != nil {
log.Error("creative-interface ping error(%v)", err)
c.AbortWithStatus(http.StatusServiceUnavailable)
}
}