You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
311 B
16 lines
311 B
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) { |
|
if err := viewSvr.Ping(c); err != nil { |
|
log.Error("app-view service ping error(%+v)", err) |
|
c.AbortWithStatus(http.StatusServiceUnavailable) |
|
} |
|
}
|
|
|