MCPcopy Index your code
hub / github.com/koding/kite / handleHeartbeat

Method handleHeartbeat

heartbeat.go:246–255  ·  view source on GitHub ↗

handleHeartbeat pings the callback with the given interval seconds.

(r *Request)

Source from the content-addressed store, hash-verified

244
245// handleHeartbeat pings the callback with the given interval seconds.
246func (k *Kite) handleHeartbeat(r *Request) (interface{}, error) {
247 req, err := newHeartbeatReq(r)
248 if err != nil {
249 return nil, err
250 }
251
252 k.heartbeatC <- req
253
254 return nil, req.ping()
255}

Callers

nothing calls this directly

Calls 1

newHeartbeatReqFunction · 0.85

Tested by

no test coverage detected