1234567891011121314151617 |
- 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 = assSvc.Ping(c); err != nil {
- log.Error("assist-service ping error(%v)", err)
- c.AbortWithStatus(http.StatusServiceUnavailable)
- }
- }
|