MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / HealthzHandler

Method HealthzHandler

pkg/controller/handler.go:37–41  ·  view source on GitHub ↗
(c *routing.Context)

Source from the content-addressed store, hash-verified

35)
36
37func (controller *Controller) HealthzHandler(c *routing.Context) error {
38 c.SetStatusCode(http.StatusOK)
39 c.WriteString("hello controller")
40 return nil
41}
42
43func (controller *Controller) InvokeHandler(c *routing.Context) error {
44 externalRequestID := string(c.Request.Header.Peek(api.HeaderXRequestID))

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
SetStatusCodeMethod · 0.45

Tested by

no test coverage detected